Mercurial > hg > webaudioevaluationtool
changeset 1832:b62bdeca9bc6
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 | 3ef5ba19b206 |
children | 02e49021fd19 |
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 {