Plugin.instantiate

Instance instantiate(double sampleRate, const(LV2_Feature *) * features = null)

Instantiate a plugin.

The returned value is a lightweight handle for an LV2 plugin instance, it does not refer to plugin, or any other Lilv state.

Low overhead C callback version which is potentially real-time safe.

Parameters

sampleRateAudio sample rate
featuresOptional null terminated array of features the host supports. null may be passed if the host supports no additional features.

Returns

Instance or null on failure
Instance instantiate(double sampleRate, Feature[] features = null)

Instantiate a plugin.

The returned value is a lightweight handle for an LV2 plugin instance, it does not refer to plugin, or any other Lilv state.

Uses a delegate instead of a C callback and dynamic array of Feature structures which may result in GC allocation and is NOT real-time safe.

Parameters

sampleRateAudio sample rate
featuresOptional array of features the host supports. null may be passed if the host supports no additional features.

Returns

Instance or null on failure