pub struct Sinc<S> { /* private fields */ }
Expand description
Interpolator for sinc interpolation.
Generally accepted as one of the better sample rate converters, although it uses significantly more computation.
Implementations§
Source§impl<S> Sinc<S>
impl<S> Sinc<S>
Sourcepub fn new(frames: Fixed<S>) -> Self
pub fn new(frames: Fixed<S>) -> Self
Create a new Sinc interpolator with the given ring buffer.
The given ring buffer should have a length twice that of the desired sinc interpolation
depth
.
The initial contents of the ring_buffer will act as padding for the interpolated signal.
**panic!**s if the given ring buffer’s length is not a multiple of 2
.
Trait Implementations§
Source§impl<S> Interpolator for Sinc<S>
impl<S> Interpolator for Sinc<S>
Auto Trait Implementations§
impl<S> Freeze for Sinc<S>where
S: Freeze,
impl<S> RefUnwindSafe for Sinc<S>where
S: RefUnwindSafe,
impl<S> Send for Sinc<S>where
S: Send,
impl<S> Sync for Sinc<S>where
S: Sync,
impl<S> Unpin for Sinc<S>where
S: Unpin,
impl<S> UnwindSafe for Sinc<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more