pub type LV2UI_Write_Function = Option<unsafe extern "C" fn(controller: LV2UI_Controller, port_index: u32, buffer_size: u32, port_protocol: u32, buffer: *const c_void)>;Expand description
A host-provided function that sends data to a plugin’s input ports.
@param controller The opaque controller pointer passed to LV2UI_Descriptor::instantiate().
@param port_index Index of the port to update.
@param buffer Buffer containing buffer_size bytes of data.
@param buffer_size Size of buffer in bytes.
@param port_protocol Either 0 or the URID for a ui:PortProtocol. If 0, the
protocol is implicitly ui:floatProtocol, the port MUST be an lv2:ControlPort
input, buffer MUST point to a single float value, and buffer_size MUST
be sizeof(float). The UI SHOULD NOT use a protocol not supported by the
host, but the host MUST gracefully ignore any protocol it does not
understand.
Aliased Type§
pub enum LV2UI_Write_Function {
None,
Some(unsafe extern "C" fn(*mut c_void, u32, u32, u32, *const c_void)),
}