Skip to content

Commit c569aab

Browse files
Resetting rate updates on sound loop
1 parent 5635c04 commit c569aab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ var WebAudioSound = new Class({
248248
this.source = this.loopSource;
249249
this.loopSource = null;
250250
this.playTime = this.startTime = this.loopTime;
251+
this.rateUpdates.length = 0;
252+
this.rateUpdates.push({
253+
time: 0,
254+
rate: this.totalRate
255+
});
251256
this.createAndStartLoopBufferSource();
252257
}
253258
},

0 commit comments

Comments
 (0)