pub struct TapeReader<T> { /* private fields */ }Expand description
Shared read capability over a TapeLoop. Clone — one per read tap.
Exposes only read operations; readers cannot mutate the tape, so the single-writer invariant is checked at compile time.
Implementations§
Source§impl<T: Transcendental> TapeReader<T>
impl<T: Transcendental> TapeReader<T>
Sourcepub fn read(&self, delay: usize) -> T
pub fn read(&self, delay: usize) -> T
Read a sample at delay samples behind the write position.
Sourcepub fn read_interpolated(&self, delay: f64) -> T
pub fn read_interpolated(&self, delay: f64) -> T
Read with linear interpolation between samples.
Sourcepub fn read_block(&self, delay: usize, output: &mut [T])
pub fn read_block(&self, delay: usize, output: &mut [T])
Read a full block starting at delay samples behind write position.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TapeReader<T>
impl<T> !Send for TapeReader<T>
impl<T> !Sync for TapeReader<T>
impl<T> !UnwindSafe for TapeReader<T>
impl<T> Freeze for TapeReader<T>
impl<T> Unpin for TapeReader<T>
impl<T> UnsafeUnpin for TapeReader<T>
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