Mercurial > hg > webaudioevaluationtool
diff WAVE.js @ 1357:f764e8e40a96
Fixed loudness. Now passes all EBU 3341 tests for Integrated loudness. Fixed WAVE decoder error for non-mono sources.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 26 Jan 2016 11:01:55 +0000 |
parents | 41574c5bc5ee |
children | 1b038c226444 c0022a09c4f6 |
line wrap: on
line diff
--- a/WAVE.js Mon Jan 25 17:29:34 2016 +0000 +++ b/WAVE.js Tue Jan 26 11:01:55 2016 +0000 @@ -108,7 +108,7 @@ } } else if (this.type == 1) { - data_view = new Float32Array(this.num_samples); + data_view = new Float32Array(this.num_samples*this.num_channels); integerConvert(new Uint8Array(IOArrayBuffer.slice(sampleDataOffset,sampleDataOffset+this.data_size)),data_view,this.bits_per_sample/8); } deInterlace(data_view,this.decoded_data);