From: Paul Davis Date: Mon, 4 Jul 2016 13:26:48 +0000 (-0400) Subject: operate directly on realtime controls, not via Session X-Git-Tag: 5.0-pre1~348 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=14c50b317c824d653d72f0ce610fa616aad1c520;ds=sidebyside operate directly on realtime controls, not via Session --- diff --git a/libs/surfaces/faderport/operations.cc b/libs/surfaces/faderport/operations.cc index 6e59964905..ce6bb3e3d2 100644 --- a/libs/surfaces/faderport/operations.cc +++ b/libs/surfaces/faderport/operations.cc @@ -130,9 +130,7 @@ FaderPort::mute () return; } - boost::shared_ptr cl (new ControlList); - cl->push_back (_current_stripable->mute_control()); - session->set_controls (cl, !_current_stripable->mute_control()->muted(), PBD::Controllable::UseGroup); + _current_stripable->mute_control()->set_value (!_current_stripable->mute_control()->muted(), PBD::Controllable::UseGroup); } void @@ -142,7 +140,7 @@ FaderPort::solo () return; } - _current_stripable->solo_control()->set_value (_current_stripable->solo_control()->soloed() ? 0.0 : 1.0, PBD::Controllable::UseGroup); + _current_stripable->solo_control()->set_value (_current_stripable->solo_control()->soloed(), PBD::Controllable::UseGroup); } void