No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
7 additions and
0 deletions
-
voicegardens/static/voicegardens.js
|
@ -61,6 +61,12 @@ function record() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function enableAudioContext() { |
|
|
|
|
|
if (getAudioContext().state !== "running") { |
|
|
|
|
|
getAudioContext().resume(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function stop() { |
|
|
function stop() { |
|
|
/** |
|
|
/** |
|
|
* Stop recording a new sound. |
|
|
* Stop recording a new sound. |
|
@ -152,6 +158,7 @@ function setupRecording() { |
|
|
|
|
|
|
|
|
recordButton = createImg("../static/images/RECORD-COLOR.png"); |
|
|
recordButton = createImg("../static/images/RECORD-COLOR.png"); |
|
|
recordButton.mousePressed(record); |
|
|
recordButton.mousePressed(record); |
|
|
|
|
|
recordButton.touchPressed(enableAudioContext); |
|
|
recordButton.class("button record"); |
|
|
recordButton.class("button record"); |
|
|
|
|
|
|
|
|
stopButton = createImg("../static/images/STOP-BW.png"); |
|
|
stopButton = createImg("../static/images/STOP-BW.png"); |
|
|