Struct opus::SoftClip [] [src]

pub struct SoftClip {
    // some fields omitted
}

Soft-clipping to bring a float signal within the [-1,1] range.

Methods

impl SoftClip
[src]

fn new(channels: Channels) -> SoftClip

Initialize a new soft-clipping state.

fn apply(&mut self, signal: &mut [f32])

Apply soft-clipping to a float signal.