X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Froute.cc;h=edffc3f3cec7cb03a662bf0370a7eeaacae23575;hb=04e26fe7e6cf0ae4d85a5527b30b5e1196966465;hp=db92edf786f2df78cdf8ed4c6c993af17afc1560;hpb=1f6800d421fc41e6797e0bc3b6e78a6e07e97120;p=ardour.git diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index db92edf786..edffc3f3ce 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5894,3 +5894,23 @@ Route::slaved_to (boost::shared_ptr vca) const return _gain_control->slaved_to (vca); } + +void +Route::vca_assign (boost::shared_ptr vca) +{ + _gain_control->add_master (vca); + vca->add_solo_mute_target (shared_from_this()); +} + +void +Route::vca_unassign (boost::shared_ptr vca) +{ + if (!vca) { + /* unassign from all */ + _gain_control->clear_masters (); + /* XXXX need to remove from solo/mute target lists */ + } else { + _gain_control->remove_master (vca); + vca->remove_solo_mute_target (shared_from_this()); + } +}