Skip to content

Commit

Permalink
[fixed] use correct RIFF chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
jergason committed Sep 7, 2014
1 parent f814ac7 commit 0580cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recorderWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function encodeWAV(samples){

/* RIFF identifier */
writeString(view, 0, 'RIFF');
/* file length */
view.setUint32(4, 32 + samples.length * 2, true);
/* RIFF chunk length */
view.setUint32(4, 36 + samples.length * 2, true);
/* RIFF type */
writeString(view, 8, 'WAVE');
/* format chunk identifier */
Expand Down

0 comments on commit 0580cdc

Please sign in to comment.