Struct sample::interpolate::Sinc
[−]
[src]
pub struct Sinc<F> { /* fields omitted */ }
Interpolator for sinc interpolation. Generally accepted as one of the better sample rate converters, although it uses significantly more computation.
Methods
impl<F> Sinc<F>
[src]
fn new<S>(depth: usize, padding: S) -> Self where
F: Frame,
S: Signal<Frame = F>,
[src]
F: Frame,
S: Signal<Frame = F>,
Create a new Sinc interpolater whose inner queue will be padded with the given signal.
fn zero_padded(depth: usize) -> Self where
F: Frame,
[src]
F: Frame,
Create a new Sinc interpolator whose inner queue will be padded with equilibrium frames.
Trait Implementations
impl<F> Interpolator for Sinc<F> where
F: Frame,
<F as Frame>::Sample: Duplex<f64>,
[src]
F: Frame,
<F as Frame>::Sample: Duplex<f64>,
type Frame = F
fn interpolate(&self, x: f64) -> F
[src]
Sinc interpolation
fn next_source_frame(&mut self, source_frame: F)
[src]
Called whenever the Interpolator value steps passed 1.0.