pub struct StmSampleBody {
pub pcm: Vec<i8>,
pub loop_start: u16,
pub loop_end: u16,
pub volume: u8,
pub c3_hz: u16,
}Expand description
Per-instrument sample body after extraction.
Fields§
§pcm: Vec<i8>Raw signed 8-bit PCM. Empty if the instrument has no samples or the file was truncated.
loop_start: u16§loop_end: u16§volume: u8§c3_hz: u16Implementations§
Trait Implementations§
Source§impl Clone for StmSampleBody
impl Clone for StmSampleBody
Source§fn clone(&self) -> StmSampleBody
fn clone(&self) -> StmSampleBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StmSampleBody
impl Debug for StmSampleBody
Source§impl Default for StmSampleBody
impl Default for StmSampleBody
Source§fn default() -> StmSampleBody
fn default() -> StmSampleBody
Returns the “default value” for a type. Read more
Source§impl SampleSource for StmSampleBody
impl SampleSource for StmSampleBody
Auto Trait Implementations§
impl Freeze for StmSampleBody
impl RefUnwindSafe for StmSampleBody
impl Send for StmSampleBody
impl Sync for StmSampleBody
impl Unpin for StmSampleBody
impl UnsafeUnpin for StmSampleBody
impl UnwindSafe for StmSampleBody
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