diff --git a/src/effects/VolumeEffect.js b/src/effects/VolumeEffect.js index 6e79e8a..311d3d3 100644 --- a/src/effects/VolumeEffect.js +++ b/src/effects/VolumeEffect.js @@ -42,8 +42,8 @@ class VolumeEffect extends Effect { this.value = value; const {gain} = this.outputNode; - const {currentTime, DECAY_WAIT, DECAY_DURATION} = this.audioEngine; - gain.linearRampToValueAtTime(value / 100, currentTime + DECAY_WAIT + DECAY_DURATION); + const {currentTime, DECAY_DURATION} = this.audioEngine; + gain.linearRampToValueAtTime(value / 100, currentTime + DECAY_DURATION); } /**