Skip to content

Commit

Permalink
removing node from createBufferSource() method name
Browse files Browse the repository at this point in the history
  • Loading branch information
cleartribe committed Oct 4, 2013
1 parent 70d3935 commit 3b1f921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In addition, you may specify the type of Blob to be returned (defaults to 'audio
This will pass the recorded stereo buffer (as an array of two Float32Arrays, for the separate left and right channels) to the callback. It can be played back by creating a new source buffer and setting these buffers as the separate channel data:

function getBufferCallback( buffers ) {
var newSource = audioContext.createBufferSourceNode();
var newSource = audioContext.createBufferSource();
var newBuffer = audioContext.createBuffer( 2, buffers[0].length, audioContext.sampleRate );
newBuffer.getChannelData(0).set(buffers[0]);
newBuffer.getChannelData(1).set(buffers[1]);
Expand Down

0 comments on commit 3b1f921

Please sign in to comment.