Disconnecting loop buffer source from its destination after stopping it

This commit is contained in:
Pavle Goloskokovic 2018-01-07 18:18:53 +01:00
parent f4f3ecccdd
commit 9b0ed25a4d

View file

@ -220,6 +220,7 @@ var WebAudioSound = new Class({
stopAndRemoveLoopBufferSource: function () {
if (this.loopSource) {
this.loopSource.stop();
this.loopSource.disconnect();
this.loopSource = null;
}
this.loopTime = 0;