#[non_exhaustive]pub struct SoundFont { /* private fields */ }
Expand description
Reperesents a SoundFont.
Implementations§
Source§impl SoundFont
impl SoundFont
Sourcepub fn get_info(&self) -> &SoundFontInfo
pub fn get_info(&self) -> &SoundFontInfo
Gets the information of the SoundFont.
Sourcepub fn get_bits_per_sample(&self) -> i32
pub fn get_bits_per_sample(&self) -> i32
Gets the bits per sample of the sample data.
Sourcepub fn get_wave_data(&self) -> &[i16]
pub fn get_wave_data(&self) -> &[i16]
Gets the sample data.
Sourcepub fn get_sample_headers(&self) -> &[SampleHeader]
pub fn get_sample_headers(&self) -> &[SampleHeader]
Gets the samples of the SoundFont.
Sourcepub fn get_presets(&self) -> &[Preset]
pub fn get_presets(&self) -> &[Preset]
Gets the presets of the SoundFont.
Sourcepub fn get_instruments(&self) -> &[Instrument]
pub fn get_instruments(&self) -> &[Instrument]
Gets the instruments of the SoundFont.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoundFont
impl RefUnwindSafe for SoundFont
impl Send for SoundFont
impl Sync for SoundFont
impl Unpin for SoundFont
impl UnwindSafe for SoundFont
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