diff 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
line wrap: on
line diff
--- a/ape.js	Wed May 27 19:00:20 2015 +0100
+++ b/ape.js	Wed May 27 20:24:17 2015 +0100
@@ -365,6 +365,7 @@
 			if (this.status == 1) {
 				this.audioObjects[id].outputGain.gain.value = 1.0;
 				this.audioObjects[id].play(audioContext.currentTime+0.01);
+                this.audioObjects[id].flagAsPlayed(); 
 			}
 		};
 	}