Skip to content

Commit a9692ce

Browse files
stopping source and resetting fields on stop call for WebAudioSound
1 parent 38a8ce3 commit a9692ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ var WebAudioSound = new Class({
6565
return this;
6666
},
6767
stop: function () {
68+
BaseSound.prototype.stop.call(this);
69+
this.source.stop();
70+
this.source = null;
71+
this.startTime = 0;
6872
return this;
6973
},
7074
update: function () {

0 commit comments

Comments
 (0)