#[repr(C)]pub struct MidiEvent {
pub message: MidiMessage,
pub sample_offset: u32,
}Expand description
A MIDI event with sample-accurate timing for audio buffer processing.
Combines a MIDI message with a sample offset indicating when the event should be processed within the current audio buffer.
Uses #[repr(C)] for C-compatible memory layout, enabling FFI usage.
Fields§
§message: MidiMessageThe MIDI message data.
sample_offset: u32Sample offset within the current buffer (0 to buffer_size - 1).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MidiEvent
impl RefUnwindSafe for MidiEvent
impl Send for MidiEvent
impl Sync for MidiEvent
impl Unpin for MidiEvent
impl UnwindSafe for MidiEvent
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