Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
example: Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed May 24, 2019
1 parent c3b3ecd commit 995a161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
console.log('length:', e.data[0].length);
console.log('sampleRate:', e.sampleRate);

const buffer = context.createBuffer(e.data.length, e.data[0].length, e.sampleRate);
const buffer = context.createBuffer(channels, e.data[0].length, e.sampleRate);
for (let i = 0; i < channels; i++) {
// copyToChannel might not be available on Safari.
if (buffer.copyToChannel) {
Expand Down

0 comments on commit 995a161

Please sign in to comment.