An slv2instance is an instantiated slv2plugin (ie a loaded dynamic library).
These functions interact with the binary library code only, they do not read data files in any way.
Instantiate a plugin.
The returned object represents shared library objects loaded into memory, it must be cleaned up with slv2_instance_free when no longer needed.
plugin is not modified or directly referenced by the returned object (instances store only a copy of the plugin's URI).
host_features NULL-terminated array of features the host supports. NULL may be passed if the host supports no additional features (unlike the LV2 specification - SLV2 takes care of it).
Returns:
NULL if instantiation failed.
Free a plugin instance.
instance is invalid after this call.
Get the URI of the plugin which instance is an instance of.
Returned string is shared and must not be modified or deleted.
Connect a port to a data location.
This may be called regardless of whether the plugin is activated, activation and deactivation does not destroy port connections.
Activate a plugin instance.
This resets all state information in the plugin, except for port data locations (as set by slv2_instance_connect_port). This MUST be called before calling slv2_instance_run.
Run instance for sample_count frames.
If the hint lv2:hardRtCapable is set for this plugin, this function is guaranteed not to block.
Deactivate a plugin instance.
Note that to run the plugin after this you must activate it, which will reset all state information (except port connections).
Get extension data from the plugin instance.
The type and semantics of the data returned is specific to the particular extension, though in all cases it is shared and must not be deleted.
Get the LV2_Descriptor of the plugin instance.
Normally hosts should not need to access the LV2_Descriptor directly, use the slv2_instance_* functions.
The returned descriptor is shared and must not be deleted.
Get the LV2_Handle of the plugin instance.
Normally hosts should not need to access the LV2_Handle directly, use the slv2_instance_* functions.
The returned handle is shared and must not be deleted.
Instantiate a plugin UI.
The returned object represents shared library objects loaded into memory, it must be cleaned up with slv2_ui_instance_free when no longer needed.
plugin is not modified or directly referenced by the returned object (instances store only a copy of the plugin's URI).
host_features NULL-terminated array of features the host supports. NULL may be passed if the host supports no additional features (unlike the LV2 specification - SLV2 takes care of it).
Returns:
NULL if instantiation failed.
Free a plugin UI instance.
It is the caller's responsibility to ensure all references to the UI instance (including any returned widgets) are cut before calling this function.
instance is invalid after this call.
Get the widget for the UI instance.
Get the LV2UI_Descriptor of the plugin UI instance.
Normally hosts should not need to access the LV2UI_Descriptor directly, use the slv2_ui_instance_* functions.
The returned descriptor is shared and must not be deleted.
Get the LV2UI_Handle of the plugin UI instance.
Normally hosts should not need to access the LV2UI_Handle directly, use the slv2_ui_instance_* functions.
The returned handle is shared and must not be deleted.
Generated automatically by Doxygen for SLV2 from the source code.