Mercurial > hg > webaudioevaluationtool
comparison ape.js @ 143:431f6bec460b Dev_main
Bug #1256 Fix: Safari does not use 'this' on the buffer.onended to reference to the buffer, but to the Window. Now uses event. Tested on chrome OSX as well.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Sat, 30 May 2015 11:19:28 +0100 |
parents | 3a19b2ab9a67 |
children | 4c59838d1225 |
comparison
equal
deleted
inserted
replaced
142:7168f3616a00 | 143:431f6bec460b |
---|---|
372 this.audioObjects[i].stop(); | 372 this.audioObjects[i].stop(); |
373 } | 373 } |
374 if (this.status == 1) { | 374 if (this.status == 1) { |
375 this.audioObjects[id].outputGain.gain.value = 1.0; | 375 this.audioObjects[id].outputGain.gain.value = 1.0; |
376 this.audioObjects[id].play(audioContext.currentTime+0.01); | 376 this.audioObjects[id].play(audioContext.currentTime+0.01); |
377 this.audioObjects[id].flagAsPlayed(); | |
378 } | 377 } |
379 }; | 378 }; |
380 } | 379 } |
381 | 380 |
382 currentTestHolder = document.createElement('audioHolder'); | 381 currentTestHolder = document.createElement('audioHolder'); |