Don't timeout
This commit is contained in:
parent
4e303cb8a4
commit
3244126ad5
@ -33,12 +33,6 @@ var stopButton;
|
|||||||
var leafButton;
|
var leafButton;
|
||||||
var aboutButton;
|
var aboutButton;
|
||||||
|
|
||||||
// Time-out used to stop a recording in case the user forgets to stop it
|
|
||||||
// themselves. It also gurantees to turn off the mic in case of some unknown
|
|
||||||
// error that we didn't take into consideration. This is 30 seconds in
|
|
||||||
// milliseconds.
|
|
||||||
var recordingTimeout = 30000;
|
|
||||||
|
|
||||||
// The x,y coordinates which shows where the window position is. This is useful
|
// The x,y coordinates which shows where the window position is. This is useful
|
||||||
// because we use the `translate` function to offset the window view in
|
// because we use the `translate` function to offset the window view in
|
||||||
// relation to the canvas (users can drag their view across the "environment")
|
// relation to the canvas (users can drag their view across the "environment")
|
||||||
@ -64,7 +58,7 @@ function record() {
|
|||||||
* Start recording a sound.
|
* Start recording a sound.
|
||||||
**/
|
**/
|
||||||
if (microphone.enabled) {
|
if (microphone.enabled) {
|
||||||
setTimeout(recorder.record(recording), recordingTimeout);
|
recorder.record(recording);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user