Struct rubato::ScalarInterpolator
source · [−]pub struct ScalarInterpolator<T> { /* private fields */ }
Expand description
A plain scalar interpolator
Implementations
sourceimpl<T> ScalarInterpolator<T> where
T: Sample,
impl<T> ScalarInterpolator<T> where
T: Sample,
sourcepub fn new(
sinc_len: usize,
oversampling_factor: usize,
f_cutoff: f32,
window: WindowFunction
) -> Self
pub fn new(
sinc_len: usize,
oversampling_factor: usize,
f_cutoff: f32,
window: WindowFunction
) -> Self
Create a new ScalarInterpolator
Parameters are:
sinc_len
: Length of sinc functions.oversampling_factor
: Number of intermediate sincs (oversampling factor).f_cutoff
: Relative cutoff frequency.window
: Window function to use.
Auto Trait Implementations
impl<T> RefUnwindSafe for ScalarInterpolator<T> where
T: RefUnwindSafe,
impl<T> Send for ScalarInterpolator<T> where
T: Send,
impl<T> Sync for ScalarInterpolator<T> where
T: Sync,
impl<T> Unpin for ScalarInterpolator<T> where
T: Unpin,
impl<T> UnwindSafe for ScalarInterpolator<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more