mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Don't setValueAtTime in volume effect
This commit is contained in:
parent
f8fa66403d
commit
c1182e5106
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue