mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-21 03:14:00 +02:00
state changed is no longer needed
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
@@ -65,7 +65,6 @@ namespace NAM {
|
|||||||
uris.patch_property = map->map(map->handle, LV2_PATCH__property);
|
uris.patch_property = map->map(map->handle, LV2_PATCH__property);
|
||||||
uris.patch_value = map->map(map->handle, LV2_PATCH__value);
|
uris.patch_value = map->map(map->handle, LV2_PATCH__value);
|
||||||
uris.units_frame = map->map(map->handle, LV2_UNITS__frame);
|
uris.units_frame = map->map(map->handle, LV2_UNITS__frame);
|
||||||
uris.state_StateChanged = map->map(map->handle, LV2_STATE__StateChanged);
|
|
||||||
|
|
||||||
uris.model_Path = map->map(map->handle, MODEL_URI);
|
uris.model_Path = map->map(map->handle, MODEL_URI);
|
||||||
|
|
||||||
@@ -171,7 +170,6 @@ namespace NAM {
|
|||||||
|
|
||||||
// report change to host/ui
|
// report change to host/ui
|
||||||
nam->write_current_path();
|
nam->write_current_path();
|
||||||
nam->write_state_changed();
|
|
||||||
|
|
||||||
return LV2_WORKER_SUCCESS;
|
return LV2_WORKER_SUCCESS;
|
||||||
}
|
}
|
||||||
@@ -416,16 +414,4 @@ namespace NAM {
|
|||||||
|
|
||||||
lv2_atom_forge_pop(&atom_forge, &frame);
|
lv2_atom_forge_pop(&atom_forge, &frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plugin::write_state_changed()
|
|
||||||
{
|
|
||||||
LV2_Atom_Forge_Frame frame;
|
|
||||||
|
|
||||||
lv2_atom_forge_frame_time(&atom_forge, 0);
|
|
||||||
lv2_atom_forge_object(&atom_forge, &frame, 0, uris.state_StateChanged);
|
|
||||||
|
|
||||||
/* object with no properties */
|
|
||||||
|
|
||||||
lv2_atom_forge_pop(&atom_forge, &frame);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ namespace NAM {
|
|||||||
void process(uint32_t n_samples) noexcept;
|
void process(uint32_t n_samples) noexcept;
|
||||||
|
|
||||||
void write_current_path();
|
void write_current_path();
|
||||||
void write_state_changed();
|
|
||||||
|
|
||||||
static uint32_t options_get(LV2_Handle instance, LV2_Options_Option* options);
|
static uint32_t options_get(LV2_Handle instance, LV2_Options_Option* options);
|
||||||
static uint32_t options_set(LV2_Handle instance, const LV2_Options_Option* options);
|
static uint32_t options_set(LV2_Handle instance, const LV2_Options_Option* options);
|
||||||
@@ -106,7 +105,6 @@ namespace NAM {
|
|||||||
LV2_URID patch_Get;
|
LV2_URID patch_Get;
|
||||||
LV2_URID patch_property;
|
LV2_URID patch_property;
|
||||||
LV2_URID patch_value;
|
LV2_URID patch_value;
|
||||||
LV2_URID state_StateChanged;
|
|
||||||
LV2_URID units_frame;
|
LV2_URID units_frame;
|
||||||
LV2_URID model_Path;
|
LV2_URID model_Path;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user