Maybe start the audio
This commit is contained in:
parent
7477e0cba2
commit
10414e593e
@ -56,17 +56,12 @@ function record() {
|
||||
/**
|
||||
* Start recording a sound.
|
||||
**/
|
||||
userStartAudio();
|
||||
if (microphone.enabled === true) {
|
||||
recorder.record(recording);
|
||||
}
|
||||
}
|
||||
|
||||
function enableAudioContext() {
|
||||
if (getAudioContext().state !== "running") {
|
||||
getAudioContext().resume();
|
||||
}
|
||||
}
|
||||
|
||||
function stop() {
|
||||
/**
|
||||
* Stop recording a new sound.
|
||||
@ -158,7 +153,6 @@ function setupRecording() {
|
||||
|
||||
recordButton = createImg("../static/images/RECORD-COLOR.png");
|
||||
recordButton.mousePressed(record);
|
||||
recordButton.touchStarted(enableAudioContext);
|
||||
recordButton.class("button record");
|
||||
|
||||
stopButton = createImg("../static/images/STOP-BW.png");
|
||||
|
Loading…
Reference in New Issue
Block a user