suil_instance_port_event¶
-
void suil_instance_port_event(SuilInstance *instance, uint32_t port_index, uint32_t buffer_size, uint32_t format, const void *buffer)¶
Notify the UI about a change in a plugin port.
This function can be used to notify the UI about any port change, but in the simplest case is used to set the value of lv2:ControlPort ports. For simplicity, this is a special case where
formatis 0,buffer_sizeis 4, andbuffershould point to a single float.The
buffermust be valid only for the duration of this call, the UI must not keep a reference to it.- Parameters:
instance – UI instance.
port_index – Index of the port which has changed.
buffer_size – Size of
bufferin bytes.format – Format of
buffer(mapped URI, or 0 for float).buffer – Change data, e.g. the new port value.