Don't setValueAtTime in volume effect

This commit is contained in:
adroitwhiz 2019-05-01 03:23:17 -04:00
parent f8fa66403d
commit c1182e5106

View file

@ -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);
}