class FMOD::Effects::Delay
This unit produces different delays on individual channels of the sound.
@note Every time MaxDelay is changed, the plugin re-allocates the delay
buffer. This means the delay will disappear at that time while it refills its new buffer. A larger {#max_delay} results in larger amounts of memory allocated. Channel delays above {#max_delay} will be clipped to MaxDelay and the delay buffer will not be re-sized.
@attr max_delay [Float] Maximum delay in ms.
* *Minimum:* 0.0 * *Maximum:* 10000.0 * *Default:* 10.0
Public Instance Methods
[](channel)
click to toggle source
Retrieves the delay, in ms, for the specified channel. @param channel [Integer] The channel index to retrieve (0 to 15). @return [Float]
# File lib/fmod/effects/delay.rb, line 27 def [](channel) get_float(channel.clamp(0, 15)) end
[]=(channel, delay)
click to toggle source
Sets the delay, in ms, for the specified channel. @param channel [Integer] The channel index to set (0 to 15). @param delay [Float] The delay value, clamped between 0.0 and 10000.0. @return [Float] The delay.
# File lib/fmod/effects/delay.rb, line 36 def []=(channel, delay) set_float(channel.clamp(0, 15), delay.clamp(0.0, 10000.0)) delay end