diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 79ac529..27e151f 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -65,7 +65,6 @@ namespace NAM { uris.patch_property = map->map(map->handle, LV2_PATCH__property); uris.patch_value = map->map(map->handle, LV2_PATCH__value); 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); @@ -171,7 +170,6 @@ namespace NAM { // report change to host/ui nam->write_current_path(); - nam->write_state_changed(); return LV2_WORKER_SUCCESS; } @@ -416,16 +414,4 @@ namespace NAM { 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); - } } diff --git a/src/nam_plugin.h b/src/nam_plugin.h index 9e83046..7968670 100644 --- a/src/nam_plugin.h +++ b/src/nam_plugin.h @@ -80,7 +80,6 @@ namespace NAM { void process(uint32_t n_samples) noexcept; void write_current_path(); - void write_state_changed(); 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); @@ -106,7 +105,6 @@ namespace NAM { LV2_URID patch_Get; LV2_URID patch_property; LV2_URID patch_value; - LV2_URID state_StateChanged; LV2_URID units_frame; LV2_URID model_Path; };