pub struct Music { /* private fields */ }
Implementations§
Source§impl Music
impl Music
Sourcepub fn load_midi(system: &mut System, songs: VecMap<(String, String)>) -> Self
pub fn load_midi(system: &mut System, songs: VecMap<(String, String)>) -> Self
Initialize by loading a list of .mid (standard midi file) / .dls (soundfont) pairs
Sourcepub fn load_midi_memory(
system: &mut System,
songs: VecMap<(&[u8], String)>,
) -> Self
pub fn load_midi_memory( system: &mut System, songs: VecMap<(&[u8], String)>, ) -> Self
Initialize by loading a list of .mid (standard midi file) / .dls (soundfont) pairs
pub fn get(&self, id: Id) -> Option<&Sound>
pub fn get_mut(&mut self, id: Id) -> Option<&mut Sound>
pub fn set(&mut self, sample: Sound, id: Id)
pub fn remove(&mut self, id: Id) -> Option<Sound>
Trait Implementations§
impl StructuralPartialEq for Music
Auto Trait Implementations§
impl Freeze for Music
impl RefUnwindSafe for Music
impl !Send for Music
impl !Sync for Music
impl Unpin for Music
impl UnwindSafe for Music
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