summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-07 01:45:20 +0100
committerRobin Gareus <robin@gareus.org>2014-01-07 01:45:20 +0100
commit58363e5490085ded7bbb7c72d5090fbba7efaf0d (patch)
tree457b632b90713636882cc438fc732ecd3f41e123 /libs
parentcec3116a8af2523cec131371fac165960e5a340d (diff)
remove inadvertently commited debug/devel code
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/lv2_plugin.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index 36b77e6d59..7d2e2e4b86 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -1022,10 +1022,8 @@ LV2Plugin::load_preset(PresetRecord r)
LilvWorld* world = _world.world;
LilvNode* pset = lilv_new_uri(world, r.uri.c_str());
LilvState* state = lilv_state_new_from_world(world, _uri_map.urid_map(), pset);
- printf("LV2Plugin::load_preset %s\n", r.uri.c_str());
if (state) {
- printf("found state\n");
lilv_state_restore(state, _impl->instance, set_port_value, this, 0, NULL);
lilv_state_free(state);
}
@@ -1096,11 +1094,13 @@ LV2Plugin::do_save_preset(string name)
lilv_state_free(state);
std::string uri = Glib::filename_to_uri(Glib::build_filename(bundle, file_name));
+#if 0 // work in progress -- make plugin presets immediately available
LilvNode *node = lilv_new_uri(_world.world, uri.c_str());
lilv_world_load_bundle(_world.world, node);
+ // TODO:
+ //lilv_world_load_resource(_world.world, preset);
lilv_node_free(node);
- printf("LV2Plugin::do_save_preset %s\n", uri.c_str());
-
+#endif
return uri;
}