Skip to content

Commit 39f95cf

Browse files
Resetting loop source when updating sound playback rate if it is playing
1 parent 187379a commit 39f95cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ var WebAudioSound = new Class({
257257
time: Math.max(this.startTime, this.manager.context.currentTime) - this.playTime,
258258
rate: this.totalRate
259259
});
260+
if (this.loopSource) {
261+
this.stopAndRemoveLoopBufferSource();
262+
this.createAndStartLoopBufferSource();
263+
}
260264
}
261265
},
262266
/**

0 commit comments

Comments
 (0)