Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2244:1e1b689e2a60
WAVE.js fallback was not correctly continuing from audioContext.decode function call.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 18 Apr 2016 15:52:39 +0100 |
parents | 760719986df3 |
children | ae2bf6a1693e |
comparison
equal
deleted
inserted
replaced
2243:0de305726129 | 2244:1e1b689e2a60 |
---|---|
1172 | 1172 |
1173 delete waveObj; | 1173 delete waveObj; |
1174 } else { | 1174 } else { |
1175 audioContext.decodeAudioData(bufferObj.xmlRequest.response, function(decodedData) { | 1175 audioContext.decodeAudioData(bufferObj.xmlRequest.response, function(decodedData) { |
1176 bufferObj.buffer = decodedData; | 1176 bufferObj.buffer = decodedData; |
1177 bufferObj.status = 2; | |
1178 calculateLoudness(bufferObj,"I"); | |
1177 }, function(e){ | 1179 }, function(e){ |
1178 // Should only be called if there was an error, but sometimes gets called continuously | 1180 // Should only be called if there was an error, but sometimes gets called continuously |
1179 // Check here if the error is genuine | 1181 // Check here if the error is genuine |
1180 if (bufferObj.xmlRequest.response == undefined) { | 1182 if (bufferObj.xmlRequest.response == undefined) { |
1181 // Genuine error | 1183 // Genuine error |