Browse Source

Start the microphone later

main
Luke Murphy 5 years ago
parent
commit
17d9252d10
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 3
      voicegardens/static/voicegardens.js

3
voicegardens/static/voicegardens.js

@ -143,7 +143,6 @@ function setupRecording() {
* Setup logic for sound recording. * Setup logic for sound recording.
**/ **/
microphone = new p5.AudioIn(); microphone = new p5.AudioIn();
microphone.start();
recorder = new p5.SoundRecorder(); recorder = new p5.SoundRecorder();
recorder.setInput(microphone); recorder.setInput(microphone);
@ -165,6 +164,8 @@ function setupRecording() {
aboutButton = createImg("../static/images/ABOUT-BW.png"); aboutButton = createImg("../static/images/ABOUT-BW.png");
aboutButton.mousePressed(goToAbout); aboutButton.mousePressed(goToAbout);
aboutButton.class("button about"); aboutButton.class("button about");
microphone.start();
} }
class GeneratedShape { class GeneratedShape {

Loading…
Cancel
Save