Maybe fix the audio starting thing
This commit is contained in:
parent
b113166db8
commit
059e82344d
@ -61,6 +61,12 @@ function record() {
|
||||
}
|
||||
}
|
||||
|
||||
function enableAudioContext() {
|
||||
if (getAudioContext().state !== "running") {
|
||||
getAudioContext().resume();
|
||||
}
|
||||
}
|
||||
|
||||
function stop() {
|
||||
/**
|
||||
* Stop recording a new sound.
|
||||
@ -152,6 +158,7 @@ function setupRecording() {
|
||||
|
||||
recordButton = createImg("../static/images/RECORD-COLOR.png");
|
||||
recordButton.mousePressed(record);
|
||||
recordButton.touchPressed(enableAudioContext);
|
||||
recordButton.class("button record");
|
||||
|
||||
stopButton = createImg("../static/images/STOP-BW.png");
|
||||
|
Loading…
Reference in New Issue
Block a user