Start the microphone later

This commit is contained in:
Luke Murphy 2020-02-15 20:10:08 +01:00
parent 8cc7b55f49
commit 17d9252d10
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

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