mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-14 20:40:05 +02:00
Pre-run model to ensure all needed buffers are allocated in advance
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
+5
-2
@@ -63,9 +63,12 @@ static void cleanup(LV2_Handle instance)
|
||||
|
||||
static const void* extension_data(const char* uri)
|
||||
{
|
||||
static const LV2_State_Interface state = {NAM::Plugin::save, NAM::Plugin::restore};
|
||||
static const LV2_Worker_Interface worker = { NAM::Plugin::work, NAM::Plugin::work_response, NULL };
|
||||
static const LV2_Options_Interface options = { NAM::Plugin::options_get, NAM::Plugin::options_set };
|
||||
static const LV2_State_Interface state = { NAM::Plugin::save, NAM::Plugin::restore};
|
||||
static const LV2_Worker_Interface worker = { NAM::Plugin::work, NAM::Plugin::work_response, NULL };
|
||||
|
||||
if (!strcmp(uri, LV2_OPTIONS__interface))
|
||||
return &options;
|
||||
if (!strcmp(uri, LV2_STATE__interface))
|
||||
return &state;
|
||||
if (!strcmp(uri, LV2_WORKER__interface))
|
||||
|
||||
Reference in New Issue
Block a user