pub struct DlsInstrument {
pub name: String,
pub bank: u16,
pub program: u8,
pub is_drum: bool,
}Expand description
One DLS instrument descriptor (no wave audio).
Fields§
§name: StringInstrument name (INFO/INAM), or empty if absent.
bank: u16Combined 14-bit MIDI bank (MSB<<7 | LSB) from ulBank.
program: u8MIDI program from ulInstrument.
is_drum: boolTrue when the drum bit (0x8000_0000) is set in ulBank.
Trait Implementations§
Source§impl Clone for DlsInstrument
impl Clone for DlsInstrument
Source§impl Debug for DlsInstrument
impl Debug for DlsInstrument
impl Eq for DlsInstrument
Source§impl PartialEq for DlsInstrument
impl PartialEq for DlsInstrument
impl StructuralPartialEq for DlsInstrument
Auto Trait Implementations§
impl Freeze for DlsInstrument
impl RefUnwindSafe for DlsInstrument
impl Send for DlsInstrument
impl Sync for DlsInstrument
impl Unpin for DlsInstrument
impl UnsafeUnpin for DlsInstrument
impl UnwindSafe for DlsInstrument
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