diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-25 11:03:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:41 -0400 |
commit | 1e9b2abe730b89ff212ef61cee9e7112bf7c8f50 (patch) | |
tree | 2d666b2fab23475235b53bcc799a3ad9f5cab954 /libs/ardour/gain_control.cc | |
parent | 760beab7fa1b3fcccd653279ad736656793302ea (diff) |
save and restore vca assignments
Diffstat (limited to 'libs/ardour/gain_control.cc')
-rw-r--r-- | libs/ardour/gain_control.cc | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/libs/ardour/gain_control.cc b/libs/ardour/gain_control.cc index 3ffeb057da..ef560085cc 100644 --- a/libs/ardour/gain_control.cc +++ b/libs/ardour/gain_control.cc @@ -178,48 +178,6 @@ GainControl::get_state () int GainControl::set_state (XMLNode const& node, int version) { - AutomationControl::set_state (node, version); - -#if 0 - XMLProperty const* prop = node.property (X_("masters")); - - /* Problem here if we allow VCA's to be slaved to other VCA's .. we - * have to load all VCAs first, then set up slave/master relationships - * once we have them all. - */ - - if (prop) { - masters_string = prop->value (); - - if (_session.vca_manager().vcas_loaded()) { - vcas_loaded (); - } else { - _session.vca_manager().VCAsLoaded.connect_same_thread (vca_loaded_connection, boost::bind (&GainControl::vcas_loaded, this)); - } - } -#endif - - return 0; -} - -void -GainControl::vcas_loaded () -{ - if (masters_string.empty()) { - return; - } - - vector<string> masters; - split (masters_string, masters, ','); - - for (vector<string>::const_iterator m = masters.begin(); m != masters.end(); ++m) { - boost::shared_ptr<VCA> vca = _session.vca_manager().vca_by_number (PBD::atoi (*m)); - if (vca) { - add_master (vca->gain_control()); - } - } - - vca_loaded_connection.disconnect (); - masters_string.clear (); + return AutomationControl::set_state (node, version); } |