Mercurial > hg > webaudioevaluationtool
diff ape.js @ 427:0d3376c11145 Dev_main
Fix Bug #1500: Error caused by buffer not being loaded into the pool and then not linking once downloaded.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 18 Dec 2015 17:50:14 +0000 |
parents | 928fb9adae81 |
children | a066b8bc556f |
line wrap: on
line diff
--- a/ape.js Fri Dec 18 17:27:52 2015 +0000 +++ b/ape.js Fri Dec 18 17:50:14 2015 +0000 @@ -330,6 +330,12 @@ // Find URL of track // In this jQuery loop, variable 'this' holds the current audioElement. + // Check if an outside reference + if (index == audioHolderObject.outsideReference) + { + return; + } + // Now load each audio sample. First create the new track by passing the full URL var trackURL = audioHolderObject.hostURL + element.url; var audioObject = audioEngineContext.newTrack(element); @@ -414,7 +420,7 @@ outsideReferenceHolderspan.textContent = 'Reference'; outsideReferenceHolder.appendChild(outsideReferenceHolderspan); - var audioObject = audioEngineContext.newTrack(audioHolderObject.outsideReference); + var audioObject = audioEngineContext.newTrack(audioHolderObject.audioElements[audioHolderObject.outsideReference]); outsideReferenceHolder.onclick = function(event) {