Added fallback to noteOff method call for webkit implementation when stopping buffer source

This commit is contained in:
Pavle Goloskokovic 2018-01-06 15:01:24 +01:00
parent cd0c6b27a7
commit 7f04143b7c

View file

@ -206,7 +206,7 @@ var WebAudioSound = new Class({
*/
stopAndRemoveBufferSource: function () {
if (this.source) {
this.source.stop();
(this.source.stop || this.source.noteOff).call(this.source);
this.source = null;
}
this.playTime = 0;