We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0636221 commit 287dc70Copy full SHA for 287dc70
1 file changed
v3/src/sound/webaudio/WebAudioSound.js
@@ -205,15 +205,8 @@ var WebAudioSound = new Class({
205
this.source.playbackRate.setValueAtTime(this.totalRate, 0);
206
}
207
if (this.isPlaying) {
208
- var time = void 0;
209
- if (this.manager.context.currentTime < this.startTime) {
210
- time = this.startTime - this.playTime;
211
- }
212
- else {
213
- time = this.manager.context.currentTime - this.playTime;
214
215
this.rateUpdates.push({
216
- time: time,
+ time: Math.max(this.startTime, this.manager.context.currentTime) - this.playTime,
217
rate: this.totalRate
218
});
219
0 commit comments