Just start the microphone

This commit is contained in:
Luke Murphy 2020-02-15 21:28:53 +01:00
parent ab3da1493b
commit b113166db8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

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