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 Forget for StretchReader
impl Freeze for StretchReader
impl Move for StretchReader
impl RefUnwindSafe for StretchReader
impl Send for StretchReaderwhere
RawVecInner: Send,
impl Sync for StretchReaderwhere
RawVecInner: Sync,
impl Unpin for StretchReader
impl UnsafeUnpin for StretchReaderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<(i64, Vec<i64>)>: UnsafeUnpin,
impl UnwindSafe for StretchReaderwhere
RawVecInner: 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