pub struct SampleLoop {
pub start: u32,
pub end: u32,
pub bidi: bool,
}Fields§
§start: u32Start - offset into the sample in samples
end: u32End - offset into the sample in samples.
Must be always >= start
bidi: boolBidirectional loop (also ping-pong loop)
- false after reading the sample at
endoffset the playback head jumps to thestartoffset. - true after reading the sample at
endoffset the playback reverses and continues with the previous sample until it reaches thestartoffset, then it changes direction to normal.
Trait Implementations§
Source§impl Clone for SampleLoop
impl Clone for SampleLoop
Source§fn clone(&self) -> SampleLoop
fn clone(&self) -> SampleLoop
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SampleLoop
impl Debug for SampleLoop
impl Copy for SampleLoop
Auto Trait Implementations§
impl Freeze for SampleLoop
impl RefUnwindSafe for SampleLoop
impl Send for SampleLoop
impl Sync for SampleLoop
impl Unpin for SampleLoop
impl UnwindSafe for SampleLoop
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