From c1182e510621e0c7b70889f99901dad34565d230 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Wed, 1 May 2019 03:23:17 -0400 Subject: [PATCH] Don't setValueAtTime in volume effect --- src/effects/VolumeEffect.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/effects/VolumeEffect.js b/src/effects/VolumeEffect.js index b37e7e8..6e79e8a 100644 --- a/src/effects/VolumeEffect.js +++ b/src/effects/VolumeEffect.js @@ -43,7 +43,6 @@ class VolumeEffect extends Effect { const {gain} = this.outputNode; const {currentTime, DECAY_WAIT, DECAY_DURATION} = this.audioEngine; - gain.setValueAtTime(gain.value, currentTime + DECAY_WAIT); gain.linearRampToValueAtTime(value / 100, currentTime + DECAY_WAIT + DECAY_DURATION); }