Enum midi_msg::SampleDumpMsg
source · pub enum SampleDumpMsg {
Request {
sample_num: u16,
},
Header {
sample_num: u16,
format: u8,
period: u32,
length: u32,
sustain_loop_start: u32,
sustain_loop_end: u32,
loop_type: LoopType,
},
Packet {
running_count: u8,
data: Vec<u8>,
},
LoopPointsRequest {
sample_num: u16,
loop_num: LoopNumber,
},
LoopPointTransmission {
sample_num: u16,
loop_num: LoopNumber,
loop_type: LoopType,
start_addr: u32,
end_addr: u32,
},
}
Expand description
Used to request and transmit sampler data.
Used by UniversalNonRealTimeMsg::SampleDump
.
Variants§
Request
Request that the receiver send the given sample.
Header
The first message in a sample dump, used to describe the data contained in the following packets.
Fields
Packet
A single packet of sample data.
Use SampleDumpMsg::packet
to construct.
Fields
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.
Implementations§
Trait Implementations§
source§impl Clone for SampleDumpMsg
impl Clone for SampleDumpMsg
source§fn clone(&self) -> SampleDumpMsg
fn clone(&self) -> SampleDumpMsg
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 SampleDumpMsg
impl Debug for SampleDumpMsg
source§impl PartialEq for SampleDumpMsg
impl PartialEq for SampleDumpMsg
source§fn eq(&self, other: &SampleDumpMsg) -> bool
fn eq(&self, other: &SampleDumpMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SampleDumpMsg
impl StructuralPartialEq for SampleDumpMsg
Auto Trait Implementations§
impl Freeze for SampleDumpMsg
impl RefUnwindSafe for SampleDumpMsg
impl Send for SampleDumpMsg
impl Sync for SampleDumpMsg
impl Unpin for SampleDumpMsg
impl UnwindSafe for SampleDumpMsg
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