Don't timeout

This commit is contained in:
Luke Murphy 2020-02-15 10:05:09 +01:00
parent 4e303cb8a4
commit 3244126ad5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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);
} }
} }