1. NAME

Plugin_library_access - An SLV2Instance is an instantiated SLV2Plugin (ie a loaded dynamic library).

1.1. Functions

"SLV2Instance slv2_plugin_instantiate (SLV2Plugin plugin, double sample_rate, const LV2_Feature *const *features)"
"void slv2_instance_free (SLV2Instance instance)"
"static const char * slv2_instance_get_uri (SLV2Instance instance)"
"static void slv2_instance_connect_port (SLV2Instance instance, uint32_t port_index, void *data_location)"
"static void slv2_instance_activate (SLV2Instance instance)"
"static void slv2_instance_run (SLV2Instance instance, uint32_t sample_count)"
"static void slv2_instance_deactivate (SLV2Instance instance)"
"static const void * slv2_instance_get_extension_data (SLV2Instance instance, const char *uri)"
"static const LV2_Descriptor * slv2_instance_get_descriptor (SLV2Instance instance)"
"static LV2_Handle slv2_instance_get_handle (SLV2Instance instance)"
"SLV2UIInstance slv2_ui_instantiate (SLV2Plugin plugin, SLV2UI ui, LV2UI_Write_Function write_function, LV2UI_Controller controller, const LV2_Feature *const *features)"
"void slv2_ui_instance_free (SLV2UIInstance instance)"
"const LV2UI_Descriptor * slv2_ui_instance_get_descriptor (SLV2UIInstance instance)"
"LV2UI_Handle slv2_ui_instance_get_handle (SLV2UIInstance instance)"

2. Detailed Description

These functions interact with the binary library code only, they do not read data files in any way.

3. Function Documentation

3.1. SLV2Instance slv2_plugin_instantiate (SLV2Plugin plugin, double sample_rate, const LV2_Feature *const * features)

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.

3.2. void slv2_instance_free (SLV2Instance instance)

Free a plugin instance.

instance is invalid after this call.

3.3. static const char* slv2_instance_get_uri (SLV2Instance instance)\fC [inline, static]\fP

Get the URI of the plugin which instance is an instance of.

Returned string is shared and must not be modified or deleted.

3.4. static void slv2_instance_connect_port (SLV2Instance instance, uint32_t port_index, void * data_location)\fC [inline, static]\fP

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.

3.5. static void slv2_instance_activate (SLV2Instance instance)\fC [inline, static]\fP

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.

3.6. static void slv2_instance_run (SLV2Instance instance, uint32_t sample_count)\fC [inline, static]\fP

Run instance for sample_count frames.

If the hint lv2:hardRtCapable is set for this plugin, this function is guaranteed not to block.

3.7. static void slv2_instance_deactivate (SLV2Instance instance)\fC [inline, static]\fP

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).

3.8. static const void* slv2_instance_get_extension_data (SLV2Instance instance, const char * uri)\fC [inline, static]\fP

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.

3.9. static const LV2_Descriptor* slv2_instance_get_descriptor (SLV2Instance instance)\fC [inline, static]\fP

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.

3.10. static LV2_Handle slv2_instance_get_handle (SLV2Instance instance)\fC [inline, static]\fP

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.

3.11. SLV2UIInstance slv2_ui_instantiate (SLV2Plugin plugin, SLV2UI ui, LV2UI_Write_Function write_function, LV2UI_Controller controller, const LV2_Feature *const * features)

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.

3.12. void slv2_ui_instance_free (SLV2UIInstance instance)

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.

3.13. LV2UI_Widget slv2_ui_instance_get_widget (SLV2UIInstance instance)

Get the widget for the UI instance.

3.14. const LV2UI_Descriptor* slv2_ui_instance_get_descriptor (SLV2UIInstance 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.

3.15. LV2UI_Handle slv2_ui_instance_get_handle (SLV2UIInstance instance)

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.

4. Author

Generated automatically by Doxygen for SLV2 from the source code.