From cd43f0095cedb9b132d7d767dd7e4888b8b15dc7 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Tue, 21 Nov 2017 19:47:43 +0100 Subject: [PATCH] fixed deprecation issues with AudioParam for WebAudioSoundManager --- v3/src/sound/webaudio/WebAudioSoundManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/src/sound/webaudio/WebAudioSoundManager.js b/v3/src/sound/webaudio/WebAudioSoundManager.js index 1af5d2645..a1300093b 100644 --- a/v3/src/sound/webaudio/WebAudioSoundManager.js +++ b/v3/src/sound/webaudio/WebAudioSoundManager.js @@ -95,7 +95,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'mute', { return this.masterMuteNode.gain.value === 0; }, set: function (value) { - this.masterMuteNode.gain.value = value ? 0 : 1; + this.masterMuteNode.gain.setValueAtTime(value ? 0 : 1, 0); } }); /** @@ -107,7 +107,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', { return this.masterVolumeNode.gain.value; }, set: function (value) { - this.masterVolumeNode.gain.value = value; + this.masterVolumeNode.gain.setValueAtTime(value, 0); } }); /**