[−][src]Struct aubio_rs::Resampler
Resampler object
Methods
impl Resampler
[src]
pub fn new(ratio: f32, mode: ResampleMode) -> Result<Self>
[src]
Create resampler object
ratio
Theoutput_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]
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
Resample input in output
input
Input buffer of size Noutput
Output buffer of size N*ratio
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Resampler
impl !Send for Resampler
impl !Sync for Resampler
impl Unpin for Resampler
impl UnwindSafe for Resampler
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>,