From a9692ce2dd9cc1a2ba26f1fabc4f94ec88a20f31 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 17 Nov 2017 15:05:17 +0100 Subject: [PATCH] stopping source and resetting fields on stop call for WebAudioSound --- v3/src/sound/webaudio/WebAudioSound.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index c473faadb..c8dccad3b 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -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 () {