mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Resetting rateUpdates before playing sound source
This commit is contained in:
parent
fb9bc44685
commit
3176293f53
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ var WebAudioSound = new Class({
|
|||
this.source = this.manager.context.createBufferSource();
|
||||
this.source.buffer = this.audioBuffer;
|
||||
this.source.connect(this.muteNode);
|
||||
this.rateUpdates.length = 0;
|
||||
this.applyConfig();
|
||||
this.source.onended = function (ev) {
|
||||
if (ev.target === this.source) {
|
||||
|
|
Loading…
Reference in a new issue