diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-08 16:49:47 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:40 -0400 |
commit | 653ae4acd639fef149314fe6f8c7a0d862afae40 (patch) | |
tree | ba32ff0efd9b105c207ad7e3b2e89d73e76b4355 /libs/surfaces/faderport/operations.cc | |
parent | c107f1ab56270f4485ca2a787d575c2b5b53cfcf (diff) |
universal change in the design of the way Route/Track controls are designed and used. The controls now own their own state, rather than proxy for state in their owners.
Massive changes all over the code to accomodate this. Many things are not finished. Consider this a backup safety commit
Diffstat (limited to 'libs/surfaces/faderport/operations.cc')
-rw-r--r-- | libs/surfaces/faderport/operations.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libs/surfaces/faderport/operations.cc b/libs/surfaces/faderport/operations.cc index bb72794504..592b26da23 100644 --- a/libs/surfaces/faderport/operations.cc +++ b/libs/surfaces/faderport/operations.cc @@ -129,9 +129,9 @@ FaderPort::mute () return; } - boost::shared_ptr<RouteList> rl (new RouteList); - rl->push_back (_current_route); - session->set_mute (rl, !_current_route->muted()); + boost::shared_ptr<ControlList> cl (new ControlList); + cl->push_back (_current_route->mute_control()); + session->set_controls (cl, !_current_route->muted(), PBD::Controllable::UseGroup); } void @@ -141,14 +141,15 @@ FaderPort::solo () return; } - boost::shared_ptr<RouteList> rl (new RouteList); - rl->push_back (_current_route); + bool yn; if (Config->get_solo_control_is_listen_control()) { - session->set_listen (rl, !_current_route->listening_via_monitor()); + yn = !_current_route->listening_via_monitor(); } else { - session->set_solo (rl, !_current_route->soloed()); + yn = !_current_route->soloed(); } + + _current_route->solo_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::UseGroup); } void @@ -164,10 +165,7 @@ FaderPort::rec_enable () return; } - boost::shared_ptr<RouteList> rl (new RouteList); - rl->push_back (_current_route); - - session->set_record_enabled (rl, !t->record_enabled()); + t->rec_enable_control()->set_value (!t->rec_enable_control()->get_value(), Controllable::UseGroup); } void |