comparison 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
comparison
equal deleted inserted replaced
1356:386415d2a5c1 1357:f764e8e40a96
106 } else if (this.bits_per_sample == 64) { 106 } else if (this.bits_per_sample == 64) {
107 data_view = new Float64Array(IOArrayBuffer.slice(sampleDataOffset,sampleDataOffset+this.data_size)); 107 data_view = new Float64Array(IOArrayBuffer.slice(sampleDataOffset,sampleDataOffset+this.data_size));
108 } 108 }
109 } else if (this.type == 1) 109 } else if (this.type == 1)
110 { 110 {
111 data_view = new Float32Array(this.num_samples); 111 data_view = new Float32Array(this.num_samples*this.num_channels);
112 integerConvert(new Uint8Array(IOArrayBuffer.slice(sampleDataOffset,sampleDataOffset+this.data_size)),data_view,this.bits_per_sample/8); 112 integerConvert(new Uint8Array(IOArrayBuffer.slice(sampleDataOffset,sampleDataOffset+this.data_size)),data_view,this.bits_per_sample/8);
113 } 113 }
114 deInterlace(data_view,this.decoded_data); 114 deInterlace(data_view,this.decoded_data);
115 return 0; 115 return 0;
116 }; 116 };