summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-17 23:48:06 +0100
committerRobin Gareus <robin@gareus.org>2015-12-17 23:48:06 +0100
commit7b6ef41f0caca083441748a4ef5d836df2be243a (patch)
tree8fd596f8b941a382f5a84a81dbac0d245b2c78b7
parent7383ea6a35a249a87780b66aba856be6c5c40963 (diff)
leave some todo-notes #6709 (track templates & state)
-rw-r--r--libs/ardour/lv2_plugin.cc2
-rw-r--r--libs/ardour/route.cc4
2 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index bb523d1f93..9cac6492b4 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -1736,6 +1736,8 @@ LV2Plugin::set_state(const XMLNode& node, int version)
prop->value()) << endmsg;
}
+ // TODO: special case track-templates
+ // (state must be saved with the template)
std::string state_file = Glib::build_filename(
plugin_dir(),
Glib::build_filename(prop->value(), "state.ttl"));
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 9e4e788c67..78eca17397 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -4164,6 +4164,10 @@ Route::save_as_template (const string& path, const string& name)
IO::set_name_in_state (*node.children().front(), name);
tree.set_root (&node);
+ // TODO: special case LV2 plugin state
+ // copy of serialize it. Alternatively:
+ // create a plugin-preset (which can be loaded separately)
+
/* return zero on success, non-zero otherwise */
return !tree.write (path.c_str());
}