Mercurial > hg > webaudioevaluationtool
diff core.js @ 864:54c1fb5ca218
Feature #1327: Elements start out grey until the audioObject states it is ready. Requires all interfaceDOM nodes to have member enable().
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Thu, 23 Jul 2015 09:51:26 +0100 |
parents | cf593a8bfd71 |
children | d0870902d0a6 |
line wrap: on
line diff
--- a/core.js Thu Jul 23 09:37:27 2015 +0100 +++ b/core.js Thu Jul 23 09:51:26 2015 +0100 @@ -909,6 +909,8 @@ audioContext.decodeAudioData(request.response, function(decodedData) { audioObj.buffer = decodedData; audioObj.state = 1; + if (audioObj.specification.type != 'outsidereference') + {audioObj.interfaceDOM.enable();} }, function(){ // Should only be called if there was an error, but sometimes gets called continuously // Check here if the error is genuine