Remove extra wait time in set volume

This commit is contained in:
Eric Rosenbaum 2019-09-25 13:50:40 -04:00 committed by GitHub
parent c1182e5106
commit 3dff623735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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