mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +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;
|
return this;
|
||||||
},
|
},
|
||||||
stop: function () {
|
stop: function () {
|
||||||
|
BaseSound.prototype.stop.call(this);
|
||||||
|
this.source.stop();
|
||||||
|
this.source = null;
|
||||||
|
this.startTime = 0;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
update: function () {
|
update: function () {
|
||||||
|
|
Loading…
Reference in a new issue