Opened 11 years ago

Closed 11 years ago

#531 closed Bug Report (invalid)

Cannot implement instance-access with current API

Reported by: pgiblox@… Owned by: David Robillard
Priority: major Component: SLV2
Keywords: instance-access order Cc:



I am trying to implement the host-side of the instance-access feature. According to lv2core on LV2_Handle (*instantiate), "features is a NULL terminated array of LV2_Feature structs which represent the features the host supports. Plugins may refuse to instantiate if required features are not found here" Fine, from this I'd think I could initialize all my features' data, fill in the array, and instantiate the plugin using slv2_plugin_instantiate.

However - in the instance-access docs, it says: "the host must pass an LV2_Feature struct to the UI instantiate method with URI "" and data pointed directly to the LV2_Handle of the plugin instance"

How am I supposed to know the address of the LV2_Handle if I haven't instantiated the instance yet? It seems that there needs to be a function to complement slv2_plugin_instantiate to perform in-place instantiation. This way, I can know the address of the LV2_Handle before-hand.

Or, perhaps this is an error in the documentation for LV2 or the instance-access feature.

Change History (1)

comment:1 Changed 11 years ago by David Robillard

Resolution: invalid
Status: newclosed

"The host must pass an LV2_Feature struct to the UI instantiate method"

The whole purpose of the feature is to pass the instance to the UI, so it obviously doesn't make sense to pass it to the plugin's instantiate method...

Note: See TracTickets for help on using tickets.