Stop and remove loopSource in stopAndRemoveBufferSource

This commit is contained in:
Pavle Goloskokovic 2017-12-12 19:52:24 +01:00
parent bca40391fe
commit d788ed3a44

View file

@ -144,6 +144,10 @@ var WebAudioSound = new Class({
this.source.stop(); this.source.stop();
this.source = null; this.source = null;
} }
if (this.loopSource) {
this.source.stop();
this.source = null;
}
this.startTime = 0; this.startTime = 0;
}, },
/** /**