Class: SoundEcho

(package) rune.media.SoundEcho(context, input, output)

Adds delayed repetitions alongside the channel's unchanged original signal. Audio nodes are created on first activation and reused until clear or dispose. Enable, disable and parameter changes are smoothed over twenty milliseconds. Disabling mutes the echo and its input; the delay buffer drains in the background. Rapid reactivation can make a pending repetition audible again.

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: