Struct aubio_rs::Resampler [−][src]
pub struct Resampler { /* fields omitted */ }
Resampler object
Implementations
impl Resampler
[src]
impl Resampler
[src]pub fn new(ratio: Smpl, mode: ResampleMode) -> Result<Self>
[src]
Create resampler object
ratio
Theoutput_sample_rate
/input_sample_rate
type
Resampling method
pub fn get_ratio(&self) -> Smpl
[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 RefUnwindSafe for Resampler
impl UnwindSafe for Resampler
impl UnwindSafe for Resampler