leave some todo-notes #6709 (track templates & state)
authorRobin Gareus <robin@gareus.org>
Thu, 17 Dec 2015 22:48:06 +0000 (23:48 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 17 Dec 2015 22:48:06 +0000 (23:48 +0100)
libs/ardour/lv2_plugin.cc
libs/ardour/route.cc

index bb523d1f938ceebe5ece7074c4524a08e0082d24..9cac6492b4ed0ea2e732e3529c3955c5b62099fc 100644 (file)
@@ -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"));
index 9e4e788c675de147316ddb583e883b5a4b05d158..78eca173974b0857a588acc6db0af6872088e238 100644 (file)
@@ -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());
 }