summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-05 13:07:31 +0100
committerRobin Gareus <robin@gareus.org>2014-01-05 13:07:31 +0100
commitd89573f8e73ee7f0c28a6b9a8b8ba0f8e78c69aa (patch)
tree9d9d348cd94b8c2c6d68fb75b505efb87624b621 /libs/ardour/lv2_plugin.cc
parentf3d858f9dfa8e708cefb445c3825bca8304e897b (diff)
update slider rendering & set style for faders
* render background -- outside of rounded corners * visually align unity-location with fader at 0. * sharp lines (no more AA blur) x/y offset, radius
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index a1d9de1e53..36b77e6d59 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -1022,8 +1022,10 @@ 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);
}
@@ -1093,7 +1095,13 @@ LV2Plugin::do_save_preset(string name)
lilv_state_free(state);
- return Glib::filename_to_uri(Glib::build_filename(bundle, file_name));
+ std::string uri = Glib::filename_to_uri(Glib::build_filename(bundle, file_name));
+ LilvNode *node = lilv_new_uri(_world.world, uri.c_str());
+ lilv_world_load_bundle(_world.world, node);
+ lilv_node_free(node);
+ printf("LV2Plugin::do_save_preset %s\n", uri.c_str());
+
+ return uri;
}
void