From 04e26fe7e6cf0ae4d85a5527b30b5e1196966465 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Mar 2016 22:20:37 -0500 Subject: move VCA assignment up to Route level --- gtk2_ardour/mixer_strip.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'gtk2_ardour/mixer_strip.cc') diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 87e0aa74c1..7896c4bd0e 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -2508,10 +2508,8 @@ MixerStrip::vca_menu_toggle (CheckMenuItem* menuitem, uint32_t n) } if (!menuitem->get_active()) { - cerr << "Unassign from " << n << endl; _mixer.do_vca_unassign (vca); } else { - cerr << "Assign to " << n << endl; _mixer.do_vca_assign (vca); } } @@ -2522,8 +2520,8 @@ MixerStrip::vca_assign (boost::shared_ptr vca) if (!vca || !_route) { return; } - _route->gain_control()->add_master (vca); - vca->add_solo_mute_target (_route); + + _route->vca_assign (vca); } void @@ -2533,14 +2531,7 @@ MixerStrip::vca_unassign (boost::shared_ptr vca) return; } - if (!vca) { - /* null VCA means drop all VCA assignments */ - _route->gain_control()->clear_masters (); - /* XXX Need to remove all solo/mute target entries */ - } else { - _route->gain_control()->remove_master (vca); - vca->remove_solo_mute_target (_route); - } + _route->vca_unassign (vca); } bool -- cgit v1.2.3