Mercurial > hg > webaudioevaluationtool
changeset 2099:0e4723c6f533
Hotfix: Loop crossfade defaults to 0 seconds.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 18 Feb 2016 10:59:01 +0000 |
parents | 7b206ae65979 |
children | e5aee5d606f8 |
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 {