comparison ape.js @ 969:917676cbdcc8

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 <BrechtDeMan@users.noreply.github.com>
date Wed, 27 May 2015 20:24:17 +0100
parents be4abf039d42
children dea30ed2b549
comparison
equal deleted inserted replaced
968:be4abf039d42 969:917676cbdcc8
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');