diff --git a/recorderWorker.js b/recorderWorker.js index c5fa3662..08ad444c 100644 --- a/recorderWorker.js +++ b/recorderWorker.js @@ -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 */