[][src]Struct aubio_rs::Resampler

pub struct Resampler { /* fields omitted */ }

Resampler object

Methods

impl Resampler[src]

pub fn new(ratio: f32, mode: ResampleMode) -> Result<Self>[src]

Create resampler object

  • ratio The output_sample_rate / input_sample_rate
  • type Resampling method

pub fn get_ratio(&self) -> f32[src]

Get ratio

pub fn do_<'i, 'o, I, O>(&mut self, input: I, output: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Resample input in output

  • input Input buffer of size N
  • output Output buffer of size N*ratio

Trait Implementations

impl Drop for Resampler[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.