stopping source and resetting fields on stop call for WebAudioSound

This commit is contained in:
Pavle Goloskokovic 2017-11-17 15:05:17 +01:00
parent 38a8ce378d
commit a9692ce2dd

View file

@ -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 () {