Mercurial > hg > webaudioevaluationtool
comparison core.js @ 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 | 5ce66ca3595d |
children | d5fd92bcaa6f |
comparison
equal
deleted
inserted
replaced
2098:7b206ae65979 | 2099:0e4723c6f533 |
---|---|
1055 return; | 1055 return; |
1056 } else { | 1056 } else { |
1057 interfaceContext.playhead.setTimePerPixel(this.audioObjects[id]); | 1057 interfaceContext.playhead.setTimePerPixel(this.audioObjects[id]); |
1058 } | 1058 } |
1059 if (this.loopPlayback) { | 1059 if (this.loopPlayback) { |
1060 var setTime = audioContext.currentTime+2; | 1060 var setTime = audioContext.currentTime; |
1061 for (var i=0; i<this.audioObjects.length; i++) | 1061 for (var i=0; i<this.audioObjects.length; i++) |
1062 { | 1062 { |
1063 this.audioObjects[i].play(setTime-2); | 1063 this.audioObjects[i].play(setTime); |
1064 if (id == i) { | 1064 if (id == i) { |
1065 this.audioObjects[i].loopStart(setTime); | 1065 this.audioObjects[i].loopStart(setTime); |
1066 } else { | 1066 } else { |
1067 this.audioObjects[i].loopStop(setTime); | 1067 this.audioObjects[i].loopStop(setTime); |
1068 } | 1068 } |