mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Resetting rate updates on sound loop
This commit is contained in:
parent
5635c04da0
commit
c569aabc73
1 changed files with 5 additions and 0 deletions
|
@ -248,6 +248,11 @@ var WebAudioSound = new Class({
|
|||
this.source = this.loopSource;
|
||||
this.loopSource = null;
|
||||
this.playTime = this.startTime = this.loopTime;
|
||||
this.rateUpdates.length = 0;
|
||||
this.rateUpdates.push({
|
||||
time: 0,
|
||||
rate: this.totalRate
|
||||
});
|
||||
this.createAndStartLoopBufferSource();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue