Struct vst::api::SysExEvent

source ·
#[repr(C)]
pub struct SysExEvent { 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, }
Expand description

A midi system exclusive event.

This event only contains raw byte data, and is up to the plugin to interpret it correctly. plugin::CanDo has a ReceiveSysExEvent variant which lets the host query the plugin as to whether this event is supported.

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.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.