Skip to content

Commit c06a2bc

Browse files
Setting loop source rate in setRate method if looping is enables
1 parent dbc4b8b commit c06a2bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ var WebAudioSound = new Class({
208208
if (this.source) {
209209
this.source.playbackRate.setValueAtTime(this.totalRate, 0);
210210
}
211+
if (this.loopSource) {
212+
this.loopSource.playbackRate.setValueAtTime(this.totalRate, 0);
213+
}
211214
if (this.isPlaying) {
212215
this.rateUpdates.push({
213216
time: this.manager.context.currentTime - this.startTime,

0 commit comments

Comments
 (0)