Enum midi_msg::ExtendedSampleDumpMsg
source · pub enum ExtendedSampleDumpMsg {
Header {
sample_num: u16,
format: u8,
sample_rate: f64,
length: u64,
sustain_loop_start: u64,
sustain_loop_end: u64,
loop_type: ExtendedLoopType,
num_channels: u8,
},
SampleNameRequest {
sample_num: u16,
},
SampleName {
sample_num: u16,
name: BString,
},
LoopPointsRequest {
sample_num: u16,
loop_num: LoopNumber,
},
LoopPointTransmission {
sample_num: u16,
loop_num: LoopNumber,
loop_type: ExtendedLoopType,
start_addr: u64,
end_addr: u64,
},
}
Expand description
The extended sample dump messages described in CA-019, used to allow for longer, named samples.
Used by UniversalNonRealTimeMsg::SampleDump
.
Variants§
Header
Fields
§
sample_rate: f64
Sample rate in Hz. The f64 is used to approximate the two 28bit fixed point sent over the wire.
§
loop_type: ExtendedLoopType
SampleNameRequest
Request the given sample’s name.
SampleName
Fields
Describe the name of a given sample.
LoopPointsRequest
Request that the receiver return data about the loop points for a given sample.
LoopPointTransmission
Used to send additional loop points for a given sample.
Trait Implementations§
source§impl Clone for ExtendedSampleDumpMsg
impl Clone for ExtendedSampleDumpMsg
source§fn clone(&self) -> ExtendedSampleDumpMsg
fn clone(&self) -> ExtendedSampleDumpMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtendedSampleDumpMsg
impl Debug for ExtendedSampleDumpMsg
source§impl PartialEq for ExtendedSampleDumpMsg
impl PartialEq for ExtendedSampleDumpMsg
source§fn eq(&self, other: &ExtendedSampleDumpMsg) -> bool
fn eq(&self, other: &ExtendedSampleDumpMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExtendedSampleDumpMsg
Auto Trait Implementations§
impl Freeze for ExtendedSampleDumpMsg
impl RefUnwindSafe for ExtendedSampleDumpMsg
impl Send for ExtendedSampleDumpMsg
impl Sync for ExtendedSampleDumpMsg
impl Unpin for ExtendedSampleDumpMsg
impl UnwindSafe for ExtendedSampleDumpMsg
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