pub struct SampleLoopConfig {
pub start: u32,
pub length: u32,
pub mode: SampleAttributeLoopMode,
}Expand description
An OT Sample’s Loop settings
Fields§
§start: u32Loop start position for the audio sample (n samples).
length: u32Length of the loop for the audio sample (n samples).
mode: SampleAttributeLoopModeType of looping mode.
Implementations§
Source§impl SampleLoopConfig
impl SampleLoopConfig
pub fn new( start: u32, length: u32, mode: SampleAttributeLoopMode, ) -> Result<Self, Box<dyn Error>>
pub fn from_decoded(decoded: &SampleAttributes) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for SampleLoopConfig
impl Clone for SampleLoopConfig
Source§fn clone(&self) -> SampleLoopConfig
fn clone(&self) -> SampleLoopConfig
Returns a copy 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 SampleLoopConfig
impl Debug for SampleLoopConfig
Source§impl PartialEq for SampleLoopConfig
impl PartialEq for SampleLoopConfig
impl Copy for SampleLoopConfig
impl StructuralPartialEq for SampleLoopConfig
Auto Trait Implementations§
impl Freeze for SampleLoopConfig
impl RefUnwindSafe for SampleLoopConfig
impl Send for SampleLoopConfig
impl Sync for SampleLoopConfig
impl Unpin for SampleLoopConfig
impl UnwindSafe for SampleLoopConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more