From d788ed3a44c6bfddfa1e857c9d636ada6adaa52d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Tue, 12 Dec 2017 19:52:24 +0100 Subject: [PATCH] Stop and remove loopSource in stopAndRemoveBufferSource --- 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 df4a554e1..6aefafa7f 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -144,6 +144,10 @@ var WebAudioSound = new Class({ this.source.stop(); this.source = null; } + if (this.loopSource) { + this.source.stop(); + this.source = null; + } this.startTime = 0; }, /**