Type Alias rsynth::backend::vst_backend::vst::buffer::PlaceholderEvent
source · pub type PlaceholderEvent = SysExEvent;
Expand description
This is used as a placeholder to pre-allocate space for a fixed number of
midi events in the re-useable SendEventBuffer
, because SysExEvent
is
larger than MidiEvent
, so either one can be stored in a SysExEvent
.
Aliased Type§
struct PlaceholderEvent {
pub event_type: EventType,
pub byte_size: i32,
pub delta_frames: i32,
pub _flags: i32,
pub data_size: i32,
pub _reserved1: isize,
pub system_data: *mut u8,
pub _reserved2: isize,
}
Fields§
§event_type: EventType
Should be EventType::SysEx
.
byte_size: i32
Size of this structure; mem::sizeof::<SysExEvent>()
.
delta_frames: i32
Number of samples into the current processing block that this event occurs on.
E.g. if the block size is 512 and this value is 123, the event will occur on sample
samples[123]
.
_flags: i32
Generic flags, none defined in VST api yet.
data_size: i32
Size of payload in bytes.
_reserved1: isize
Reserved for future use. Should be 0.
system_data: *mut u8
Pointer to payload.
_reserved2: isize
Reserved for future use. Should be 0.