comparison ape.js @ 1639:4bf502a0756b

Fixed bug where 'all played' wasn't checked anymore in loop mode. Now in non-loop mode, 'flagAsPlayed' needs to be called explicitly from ape.js (may want to change)
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 27 May 2015 20:24:17 +0100
parents b91189f38aa9
children dea30ed2b549
comparison
equal deleted inserted replaced
1638:b91189f38aa9 1639:4bf502a0756b
363 this.audioObjects[i].stop(); 363 this.audioObjects[i].stop();
364 } 364 }
365 if (this.status == 1) { 365 if (this.status == 1) {
366 this.audioObjects[id].outputGain.gain.value = 1.0; 366 this.audioObjects[id].outputGain.gain.value = 1.0;
367 this.audioObjects[id].play(audioContext.currentTime+0.01); 367 this.audioObjects[id].play(audioContext.currentTime+0.01);
368 this.audioObjects[id].flagAsPlayed();
368 } 369 }
369 }; 370 };
370 } 371 }
371 372
372 currentTestHolder = document.createElement('audioHolder'); 373 currentTestHolder = document.createElement('audioHolder');