Skip to content

Commit

Permalink
Make length = 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilso committed Oct 7, 2014
1 parent cf916f0 commit 00e6e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_audio/bias/DCBias.js
Expand Up @@ -4,9 +4,10 @@

var output = context.createGain();
var bufferSource = context.createBufferSource();
var buffer = context.createBuffer(1, 1, context.sampleRate);
var buffer = context.createBuffer(1, 2, context.sampleRate);

buffer.getChannelData(0)[0] = 1.0;
buffer.getChannelData(0)[1] = 1.0;
bufferSource.buffer = buffer;
bufferSource.loop = true;

Expand Down

0 comments on commit 00e6e1c

Please sign in to comment.