[−][src]Struct rnnoise_c::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]
&mut self,
in_data: &[f32],
out_data: &mut [f32]
) -> f32
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
Auto Trait Implementations
impl RefUnwindSafe for DenoiseState
impl !Sync for DenoiseState
impl Unpin for DenoiseState
impl UnwindSafe for DenoiseState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,