LV2 Toolkit  1.2.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ResizePort< Required >::I< Derived > Struct Template Reference
Collaboration diagram for ResizePort< Required >::I< Derived >:
Collaboration graph
[legend]

Public Member Functions

bool check_ok ()
 

Static Public Member Functions

static void map_feature_handlers (FeatureHandlerMap &hmap)
 
static void handle_feature (LV2_Handle instance, FeatureData data)
 

Protected Member Functions

ResizePortStatus resize (uint32_t index, size_t size)
 

Member Function Documentation

ResizePortStatus resize ( uint32_t  index,
size_t  size 
)
inlineprotected

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: