[−][src]Struct sample::interpolate::Sinc
Interpolator for sinc interpolation.
Generally accepted as one of the better sample rate converters, although it uses significantly more computation.
Implementations
impl<S> Sinc<S>
[src]
pub fn new(frames: Fixed<S>) -> Self where
S: SliceMut,
S::Element: Frame,
[src]
S: SliceMut,
S::Element: Frame,
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
impl<S> Interpolator for Sinc<S> where
S: SliceMut,
S::Element: Frame,
<S::Element as Frame>::Sample: Duplex<f64>,
[src]
S: SliceMut,
S::Element: Frame,
<S::Element as Frame>::Sample: Duplex<f64>,
type Frame = S::Element
fn interpolate(&self, x: f64) -> Self::Frame
[src]
Sinc interpolation
fn next_source_frame(&mut self, source_frame: Self::Frame)
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Sinc<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Sinc<S> where
S: Send,
S: Send,
impl<S> Sync for Sinc<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Sinc<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Sinc<S> where
S: UnwindSafe,
S: UnwindSafe,
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<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(S) -> S
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(Self) -> U
[src]
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>,