From 3176293f53079259d86c70c0b83d120d001d1b9d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Tue, 5 Dec 2017 19:14:53 +0100 Subject: [PATCH] Resetting rateUpdates before playing sound source --- v3/src/sound/webaudio/WebAudioSound.js | 1 + 1 file changed, 1 insertion(+) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index 3f0d5734d..15f405519 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -130,6 +130,7 @@ var WebAudioSound = new Class({ this.source = this.manager.context.createBufferSource(); this.source.buffer = this.audioBuffer; this.source.connect(this.muteNode); + this.rateUpdates.length = 0; this.applyConfig(); this.source.onended = function (ev) { if (ev.target === this.source) {