suil_instance_port_event — Suil 0.10.18 documentation

# 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 `format` is 0, `buffer_size` is 4, and `buffer` should point to a single float.

  The `buffer` must 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 `buffer` in bytes.

    - format – Format of `buffer` (mapped URI, or 0 for float).

    - buffer – Change data, e.g. the new port value.