Added support to save/restore model file with presets/state

This commit is contained in:
Jon Anderson
2023-04-02 15:24:32 -05:00
parent ca90becaca
commit 1c41097285
5 changed files with 118 additions and 6 deletions
+6
View File
@@ -63,8 +63,14 @@ 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 };
if (!strcmp(uri, LV2_STATE__interface)) {
return &state;
}
if (!strcmp(uri, LV2_WORKER__interface))
return &worker;