LV2  1.0.13
Data Fields
LV2_Resize_Port_Resize Struct Reference

Data Fields

LV2_Resize_Port_Feature_Data data
LV2_Resize_Port_Status(* resize )(LV2_Resize_Port_Feature_Data data, uint32_t index, size_t size)
 Resize a port buffer to at least size bytes.

Field Documentation

LV2_Resize_Port_Feature_Data LV2_Resize_Port_Resize::data
LV2_Resize_Port_Status(* LV2_Resize_Port_Resize::resize)(LV2_Resize_Port_Feature_Data data, uint32_t index, size_t size)

Resize a port buffer to at least size bytes.

This function MAY return an error, in which case the port buffer was not resized and the port is still connected to the same location. Plugins MUST gracefully handle this situation.

This function is in the audio threading class.

The host MUST preserve the contents of the port buffer when resizing.

Plugins MAY resize a port many times in a single run callback. Hosts SHOULD make this as inexpensive as possible.


The documentation for this struct was generated from the following file: