mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Resetting loop source when updating sound playback rate if it is playing
This commit is contained in:
parent
187379ace2
commit
39f95cf6b4
1 changed files with 4 additions and 0 deletions
|
@ -257,6 +257,10 @@ var WebAudioSound = new Class({
|
|||
time: Math.max(this.startTime, this.manager.context.currentTime) - this.playTime,
|
||||
rate: this.totalRate
|
||||
});
|
||||
if (this.loopSource) {
|
||||
this.stopAndRemoveLoopBufferSource();
|
||||
this.createAndStartLoopBufferSource();
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue