From 3b872fb207f54945ce552d3b4a887951d8beef27 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 16 Dec 2015 06:31:06 -0500 Subject: fix some merge issues from cherry-picking mackie changes from a mixbus repo --- libs/surfaces/mackie/mackie_control_protocol.cc | 2 ++ libs/surfaces/mackie/strip.cc | 31 +++++++++++++------------ 2 files changed, 18 insertions(+), 15 deletions(-) (limited to 'libs') diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index 98285a87e6..545c69670d 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.cc +++ b/libs/surfaces/mackie/mackie_control_protocol.cc @@ -312,10 +312,12 @@ MackieControlProtocol::get_sorted_routes() break; case Busses: if (Profile->get_mixbus()) { +#ifdef MIXBUS if (route->mixbus()) { sorted.push_back (route); remote_ids.insert (route->remote_control_id()); } +#endif } else { if (!is_track(route)) { if (route->route_group()) { diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index e4e9a19880..15ff9e1a38 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -1893,19 +1893,6 @@ Strip::set_vpot_parameter (AutomationType p) _fader->set_control (boost::shared_ptr()); control_by_parameter[SendAutomation] = 0; } - } else { - // gain to fader, send to vpot - _fader->set_control (_route->group_gain_control()); - control_by_parameter[GainAutomation] = _fader; - boost::shared_ptr p = _route->nth_send (_current_send); - if (p && p->name() != "Monitor 1") { - boost::shared_ptr s = boost::dynamic_pointer_cast(p); - boost::shared_ptr a = s->amp(); - _vpot->set_control (a->gain_control()); - // connect to signal - send_connections.drop_connections (); - a->gain_control()->Changed.connect(send_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_processor_changed, this, false), ui_context()); - control_by_parameter[SendAutomation] = _vpot; } else { // gain to fader, send to vpot _fader->set_control (_route->group_gain_control()); @@ -1920,8 +1907,22 @@ Strip::set_vpot_parameter (AutomationType p) a->gain_control()->Changed.connect(send_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_processor_changed, this, false), ui_context()); control_by_parameter[SendAutomation] = _vpot; } else { - _vpot->set_control (boost::shared_ptr()); - control_by_parameter[SendAutomation] = 0; + // gain to fader, send to vpot + _fader->set_control (_route->group_gain_control()); + control_by_parameter[GainAutomation] = _fader; + boost::shared_ptr p = _route->nth_send (_current_send); + if (p && p->name() != "Monitor 1") { + boost::shared_ptr s = boost::dynamic_pointer_cast(p); + boost::shared_ptr a = s->amp(); + _vpot->set_control (a->gain_control()); + // connect to signal + send_connections.drop_connections (); + a->gain_control()->Changed.connect(send_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_processor_changed, this, false), ui_context()); + control_by_parameter[SendAutomation] = _vpot; + } else { + _vpot->set_control (boost::shared_ptr()); + control_by_parameter[SendAutomation] = 0; + } } } } -- cgit v1.2.3