pub struct Sampler {
pub synth: Synth,
/* private fields */
}
Fields
synth: Synth
Implementations
sourceimpl Sampler
impl Sampler
pub fn new(synth: Synth) -> Self
pub fn set_parameters(
&mut self,
method: SamplingMethod,
clock_freq: u32,
sample_freq: u32
)
pub fn reset(&mut self)
pub fn clock(
&mut self,
delta: u32,
buffer: &mut [i16],
interleave: usize
) -> (usize, u32)
pub fn compute_convolution_fir(&self, sample: &[i16], fir: &[i16]) -> i32
pub unsafe fn compute_convolution_fir_avx2(
&self,
sample: &[i16],
fir: &[i16]
) -> i32
Available with target feature
avx2
only.pub unsafe fn compute_convolution_fir_sse(
&self,
sample: &[i16],
fir: &[i16]
) -> i32
Available with target feature
sse4.2
only.pub fn compute_convolution_fir_fallback(&self, sample: &[i16], fir: &[i16]) -> i32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
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