pub struct StretchReader { /* private fields */ }Expand description
A Stretch that caches the last segments’ offsets, so sequential reads search each once.
Implementations§
Source§impl StretchReader
impl StretchReader
Sourcepub fn render(
&mut self,
first: i64,
outputs: &mut [&mut [f32]],
position: impl Fn(i64) -> i64,
channels: &[StretchSignal<'_>],
mono: StretchSignal<'_>,
)
pub fn render( &mut self, first: i64, outputs: &mut [&mut [f32]], position: impl Fn(i64) -> i64, channels: &[StretchSignal<'_>], mono: StretchSignal<'_>, )
Adds output samples from first into each of outputs from the matching channels
signal, searching on mono. Outputs should start silent.
Trait Implementations§
Source§impl Clone for StretchReader
impl Clone for StretchReader
Auto Trait Implementations§
impl Freeze for StretchReader
impl RefUnwindSafe for StretchReader
impl Send for StretchReader
impl Sync for StretchReader
impl Unpin for StretchReader
impl UnsafeUnpin for StretchReader
impl UnwindSafe for StretchReader
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