diff 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
line wrap: on
line diff
--- a/js/core.js	Mon Apr 18 13:47:35 2016 +0100
+++ b/js/core.js	Mon Apr 18 15:52:39 2016 +0100
@@ -1174,6 +1174,8 @@
                 } else {
                     audioContext.decodeAudioData(bufferObj.xmlRequest.response, function(decodedData) {
                         bufferObj.buffer = decodedData;
+                        bufferObj.status = 2;
+                        calculateLoudness(bufferObj,"I");
                     }, function(e){
                         // Should only be called if there was an error, but sometimes gets called continuously
                         // Check here if the error is genuine