diff 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
line wrap: on
line diff
--- a/ape.js	Sat May 30 10:51:55 2015 +0100
+++ b/ape.js	Sat May 30 11:19:28 2015 +0100
@@ -374,7 +374,6 @@
 			if (this.status == 1) {
 				this.audioObjects[id].outputGain.gain.value = 1.0;
 				this.audioObjects[id].play(audioContext.currentTime+0.01);
-                this.audioObjects[id].flagAsPlayed(); 
 			}
 		};
 	}