diff options
author | David Robillard <d@drobilla.net> | 2014-11-30 14:48:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-30 23:56:19 -0500 |
commit | a0deb7c3bffb7c95e6307ff295abf95fb1600492 (patch) | |
tree | 1cc705348d92841ceb5ac3a81ec18bb925d7e63b | |
parent | 52d97c8cfb7f55424e05dcb05ffa2c2f9b32a37a (diff) |
Save mute automation state.
-rw-r--r-- | libs/ardour/route.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index f35da57b92..e6ab6fb6fc 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2035,6 +2035,10 @@ Route::state(bool full_state) node->add_child_nocopy (_mute_control->get_state ()); node->add_child_nocopy (_mute_master->get_state ()); + if (full_state) { + node->add_child_nocopy (Automatable::get_automation_xml_state ()); + } + XMLNode* remote_control_node = new XMLNode (X_("RemoteControl")); snprintf (buf, sizeof (buf), "%d", _remote_control_id); remote_control_node->add_property (X_("id"), buf); @@ -2305,6 +2309,9 @@ Route::set_state (const XMLNode& node, int version) } else if (child->name() == X_("MuteMaster")) { _mute_master->set_state (*child, version); + + } else if (child->name() == Automatable::xml_node_name) { + set_automation_xml_state (*child, Evoral::Parameter(NullAutomation)); } } |