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