pub struct Sample {
pub name: String,
pub length: u32,
pub finetune: i8,
pub volume: u8,
pub repeat_start: u32,
pub repeat_length: u32,
}Fields§
§name: String§length: u32Sample length in samples (spec stores words — we’ve doubled).
finetune: i8Finetune value, signed 4-bit (-8..=7).
volume: u8Volume 0..=64.
repeat_start: u32Loop start in samples.
repeat_length: u32Loop length in samples (0 or 2 = no loop).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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