summaryrefslogtreecommitdiff
path: root/libs/surfaces/faderport
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-04 09:26:48 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-04 09:27:33 -0400
commit14c50b317c824d653d72f0ce610fa616aad1c520 (patch)
tree2f3def2b23983103a348dd7ed62d273fff17a6d0 /libs/surfaces/faderport
parent97f0415130ec9db02d449a83dbfa3969b975b529 (diff)
operate directly on realtime controls, not via Session
Diffstat (limited to 'libs/surfaces/faderport')
-rw-r--r--libs/surfaces/faderport/operations.cc6
1 files changed, 2 insertions, 4 deletions
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<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