Skip to content

Commit

Permalink
examples: set default microphone plugin options
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Oct 15, 2019
1 parent 09fc126 commit 67f1997
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion example/microphone/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ document.addEventListener('DOMContentLoaded', function() {
cursorWidth: 0,
audioContext: context || null,
audioScriptProcessor: processor || null,
plugins: [WaveSurfer.microphone.create()]
plugins: [
WaveSurfer.microphone.create({
bufferSize: 4096,
numberOfInputChannels: 1,
numberOfOutputChannels: 1
})
]
});

wavesurfer.microphone.on('deviceReady', function() {
Expand Down

0 comments on commit 67f1997

Please sign in to comment.