[][src]Struct rnnoise_c::DenoiseState

pub struct DenoiseState(_);

Implementations

impl DenoiseState[src]

pub fn new() -> Self[src]

pub fn process_frame_mut(
    &mut self,
    in_data: &[f32],
    out_data: &mut [f32]
) -> f32
[src]

Performs denoising operations on in_data array into out_data

Panics if the passed slices are not equal to FRAME_SIZE. Assumes input data is mono 16 bit audio encoded at a sample rate of 48 kHz.

Note that the input floats should be in amplitude ranges between -32767.0 and 32767.0, instead of the more common -1.0 and 1.0 boundaries. The output will be scaled in a similar fashion

pub fn process_frame_in_place(&mut self, data: &mut [f32]) -> f32[src]

Performs denoising operations on in_data array into out_data

Panics if the passed slices are not equal to FRAME_SIZE. Assumes input data is mono 16 bit audio encoded at a sample rate of 48 kHz.

Note that the input floats should be in amplitude ranges between -32767.0 and 32767.0, instead of the more common -1.0 and 1.0 boundaries. The output will be scaled in a similar fashion.

Trait Implementations

impl Drop for DenoiseState[src]

impl Send for DenoiseState[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.