[−][src]Type Definition lv2_sys::LV2UI_Write_Function
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)>;
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.