#[non_exhaustive]pub struct SampleHeader { /* private fields */ }Expand description
Represents a sample in the SoundFont.
Implementations§
Source§impl SampleHeader
impl SampleHeader
Sourcepub fn get_start_loop(&self) -> i32
pub fn get_start_loop(&self) -> i32
Gets the loop start point of the sample in the sample data.
Sourcepub fn get_end_loop(&self) -> i32
pub fn get_end_loop(&self) -> i32
Gets the loop end point of the sample in the sample data.
Sourcepub fn get_sample_rate(&self) -> i32
pub fn get_sample_rate(&self) -> i32
Gets the sample rate of the sample.
Sourcepub fn get_original_pitch(&self) -> i32
pub fn get_original_pitch(&self) -> i32
Gets the key number of the recorded pitch of the sample.
Sourcepub fn get_pitch_correction(&self) -> i32
pub fn get_pitch_correction(&self) -> i32
Gets the pitch correction in cents that should be applied to the sample on playback.
Sourcepub fn get_sample_type(&self) -> i32
pub fn get_sample_type(&self) -> i32
Gets the sample type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SampleHeader
impl RefUnwindSafe for SampleHeader
impl Send for SampleHeader
impl Sync for SampleHeader
impl Unpin for SampleHeader
impl UnwindSafe for SampleHeader
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