pub struct MultiDelay<T: Float, I> { /* private fields */ }Expand description
A multi-channel delay-line with its own buffer
Implementations§
Source§impl<T: Float, I: InterpolatorTrait<T>> MultiDelay<T, I>
impl<T: Float, I: InterpolatorTrait<T>> MultiDelay<T, I>
Sourcepub fn new(interpolator: I, channels: usize, capacity: usize) -> Self
pub fn new(interpolator: I, channels: usize, capacity: usize) -> Self
Create a new multi-channel delay line
Sourcepub fn read_channel(&self, channel: usize, delay_samples: T) -> T
pub fn read_channel(&self, channel: usize, delay_samples: T) -> T
Read a sample from a specific channel
Sourcepub fn read(&self, delay_samples: T, output: &mut [T])
pub fn read(&self, delay_samples: T, output: &mut [T])
Read samples from all channels with the same delay
Sourcepub fn read_multi(&self, delays: &[T], output: &mut [T])
pub fn read_multi(&self, delays: &[T], output: &mut [T])
Read samples from all channels with different delays
Auto Trait Implementations§
impl<T, I> Freeze for MultiDelay<T, I>where
I: Freeze,
impl<T, I> RefUnwindSafe for MultiDelay<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for MultiDelay<T, I>
impl<T, I> Sync for MultiDelay<T, I>
impl<T, I> Unpin for MultiDelay<T, I>
impl<T, I> UnwindSafe for MultiDelay<T, I>where
I: UnwindSafe,
T: 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