pub enum SelectMap {
SoundFile(Vec<SoundFileMap>),
WAV(WAVMap),
SoundFileBankOffset {
bank_offset: u16,
src_drum: bool,
},
WAVBankOffset {
map: WAVMap,
bank_offset: u16,
src_drum: bool,
},
}
Expand description
How to map a file for MIDI reference. Used by FileReferenceMsg::SelectContents
.
Variants§
SoundFile(Vec<SoundFileMap>)
Used for DLS or SF2 files. No more than 127 SoundFileMap
s.
0 SoundFileMap
s indicates “use the map provided in the file”.
WAV(WAVMap)
Used for WAV files.
SoundFileBankOffset
Used for DLS or SF2 files. Use the mapping provided by the file,
but offset the given MIDI bank by bank_offset
.
Defined in CA-028
WAVBankOffset
Used for WAV files. Offset the dest MIDI bank by bank_offset
.
Defined in CA-028.
Trait Implementations§
source§impl PartialEq for SelectMap
impl PartialEq for SelectMap
impl Eq for SelectMap
impl StructuralPartialEq for SelectMap
Auto Trait Implementations§
impl Freeze for SelectMap
impl RefUnwindSafe for SelectMap
impl Send for SelectMap
impl Sync for SelectMap
impl Unpin for SelectMap
impl UnwindSafe for SelectMap
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