operate directly on realtime controls, not via Session
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jul 2016 13:26:48 +0000 (09:26 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jul 2016 13:27:33 +0000 (09:27 -0400)
libs/surfaces/faderport/operations.cc

index 6e59964905fa8031b6a5f0164aedbcc1101def38..ce6bb3e3d2e7e4fbdaa5f607db15adf2c743219f 100644 (file)
@@ -130,9 +130,7 @@ FaderPort::mute ()
                return;
        }
 
-       boost::shared_ptr<ControlList> 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