We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c84f78 commit 0636221Copy full SHA for 0636221
1 file changed
v3/src/sound/webaudio/WebAudioSound.js
@@ -205,15 +205,17 @@ 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) {
- this.rateUpdates[this.rateUpdates.length - 1].rate = this.totalRate;
210
+ time = this.startTime - this.playTime;
211
212
else {
- this.rateUpdates.push({
213
- time: this.manager.context.currentTime - this.playTime,
214
- rate: this.totalRate
215
- });
+ time = this.manager.context.currentTime - this.playTime;
216
+ this.rateUpdates.push({
+ time: time,
217
+ rate: this.totalRate
218
+ });
219
220
},
221
/**
0 commit comments