diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-29 16:16:31 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:38 -0400 |
commit | d2c405416c0c86d01f8b701ad2781e53d87410ae (patch) | |
tree | 9603d40170520ae88b8fadd4b3986f33a9391ceb /libs/ardour/session_state.cc | |
parent | 0d5705d096a27cb561c4bbdd601315d3ee13811a (diff) |
save/restore VCAManager state
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 15ae5e08e1..819b2949ea 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1213,6 +1213,8 @@ Session::state (bool full_state) } } + node->add_child_nocopy (_vca_manager->get_state()); + child = node->add_child ("Routes"); { boost::shared_ptr<RouteList> r = routes.reader (); @@ -1459,6 +1461,10 @@ Session::set_state (const XMLNode& node, int version) } } + if ((child = find_named_node (node, VCAManager::xml_node_name)) != 0) { + _vca_manager->set_state (*child, version); + } + if ((child = find_named_node (node, "Routes")) == 0) { error << _("Session: XML state has no routes section") << endmsg; goto out; |