diff core.js @ 131:67cc1058bfad

Possible fix to loop playback bugs
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 27 May 2015 18:10:56 +0100
parents 0e13112d8501
children 76d6207784a6
line wrap: on
line diff
--- a/core.js	Wed May 27 16:46:43 2015 +0100
+++ b/core.js	Wed May 27 18:10:56 2015 +0100
@@ -432,6 +432,11 @@
 			}
 			if (this.audioObjectsReady == true) {
 				this.timer.startTest();
+				if (this.loopPlayback) {
+					for(var i=0; i<this.audioObjects.length; i++) {
+						this.audioObjects[i].play(this.timer.getTestTime()+1);
+					}
+				}
 				this.status = 1;
 			}
 		}