Created
January 28, 2016 20:55
-
-
Save hoch/4ae122d32df9222cd864 to your computer and use it in GitHub Desktop.
Chrome WebAudio Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = new AudioContext(); | |
navigator.webkitGetUserMedia({ | |
audio: true | |
}, function (stream) { | |
var source = context.createMediaStreamSource(stream); | |
source.channelCount = context.destination.maxChannelCount; | |
source.connect(context.destination); | |
}, function (error) { | |
console.log(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment