Mercurial > hg > webaudioevaluationtool
changeset 524:6c8757c643ae
Hotfix: Loop crossfade defaults to 0 seconds.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 18 Feb 2016 10:59:01 +0000 |
parents | 95fe9015f368 |
children | 97b84a942aff |
files | core.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Wed Feb 17 15:09:26 2016 +0000 +++ b/core.js Thu Feb 18 10:59:01 2016 +0000 @@ -1057,10 +1057,10 @@ interfaceContext.playhead.setTimePerPixel(this.audioObjects[id]); } if (this.loopPlayback) { - var setTime = audioContext.currentTime+2; + var setTime = audioContext.currentTime; for (var i=0; i<this.audioObjects.length; i++) { - this.audioObjects[i].play(setTime-2); + this.audioObjects[i].play(setTime); if (id == i) { this.audioObjects[i].loopStart(setTime); } else {