mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
stopping source and resetting fields on stop call for WebAudioSound
This commit is contained in:
parent
38a8ce378d
commit
a9692ce2dd
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ var WebAudioSound = new Class({
|
|||
return this;
|
||||
},
|
||||
stop: function () {
|
||||
BaseSound.prototype.stop.call(this);
|
||||
this.source.stop();
|
||||
this.source = null;
|
||||
this.startTime = 0;
|
||||
return this;
|
||||
},
|
||||
update: function () {
|
||||
|
|
Loading…
Reference in a new issue