[][src]Struct opus::SoftClip

pub struct SoftClip { /* fields omitted */ }

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

Implementations

impl SoftClip[src]

pub fn new(channels: Channels) -> SoftClip[src]

Initialize a new soft-clipping state.

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

Apply soft-clipping to a float signal.

Trait Implementations

impl Debug for SoftClip[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.