Struct oxcable_basic_devices::dynamics::limiter::Limiter
[−]
[src]
pub struct Limiter { // some fields omitted }
A limiter.
Limiters provide a hard limit on the maximum amplitude of a signal. When the signal amplitude exceeds the threshold, it is attenuated down to the threshold.
Methods
impl Limiter
fn new(threshold: f32, gain: f32, num_channels: usize) -> Self
Creates a new limiter.
- The
threshold
specifies the decibel level to limit the signal to. - The specified
gain
(in decibels) will be applied to the signal after compression.