mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Remove extra wait time in set volume
This commit is contained in:
parent
c1182e5106
commit
3dff623735
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ class VolumeEffect extends Effect {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
|
||||||
const {gain} = this.outputNode;
|
const {gain} = this.outputNode;
|
||||||
const {currentTime, DECAY_WAIT, DECAY_DURATION} = this.audioEngine;
|
const {currentTime, DECAY_DURATION} = this.audioEngine;
|
||||||
gain.linearRampToValueAtTime(value / 100, currentTime + DECAY_WAIT + DECAY_DURATION);
|
gain.linearRampToValueAtTime(value / 100, currentTime + DECAY_DURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue