Constructor
(package) new SoundEcho(context, input, output)
Creates an optional echo for a sound channel.
Parameters:
| Name | Type | Description |
|---|---|---|
context |
AudioContext | The channel's audio context. |
input |
AudioNode | Channel input, with a separate direct output path. |
output |
AudioNode | Channel volume node receiving the delayed signal. |
- Source:
Members
delay :number
Time between repetitions in seconds, clamped between 0.01 and 2.0.
Type:
- number
- Default Value:
- 0.2
- Source:
enabled :boolean
Whether echo is enabled. Disabling fades the delayed signal out without
changing original playback, playback position or channel volume.
Type:
- boolean
- Default Value:
- false
- Source:
feedback :number
Feedback strength, clamped between 0 and 0.95 so repetitions decay.
Zero produces a single delayed repetition.
Type:
- number
- Default Value:
- 0.3
- Source:
mix :number
Delayed signal volume relative to the original signal, clamped to 0..1.
The original signal remains unchanged rather than being crossfaded away.
Type:
- number
- Default Value:
- 0.25
- Source: