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.

Trait Implementations

impl MessageReceiver for Limiter

type Msg = Message

fn handle_message(&mut self, msg: Message)

impl AudioDevice for Limiter

fn num_inputs(&self) -> usize

fn num_outputs(&self) -> usize

fn tick(&mut self, _: Time, inputs: &[Sample], outputs: &mut [Sample])