Mercurial > hg > webaudioevaluationtool
diff core.js @ 966:4a5102ff2822
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 | 2dc61bd6494e |
children | 16852cf211eb |
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; } }