Skip to content

Commit

Permalink
Merge pull request mattdiamond#35 from tjtate/master
Browse files Browse the repository at this point in the history
README edit: removing node from createBufferSource() method name
  • Loading branch information
mattdiamond committed Oct 4, 2013
2 parents 70d3935 + 3b1f921 commit 092d5f6
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 092d5f6

Please sign in to comment.