diff options
Diffstat (limited to 'libs/ardour/session_rtevents.cc')
-rw-r--r-- | libs/ardour/session_rtevents.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/ardour/session_rtevents.cc b/libs/ardour/session_rtevents.cc index 00d966acaa..5f1c7a54cb 100644 --- a/libs/ardour/session_rtevents.cc +++ b/libs/ardour/session_rtevents.cc @@ -64,9 +64,28 @@ Session::set_control (boost::shared_ptr<AutomationControl> ac, double val, Contr void Session::rt_set_controls (boost::shared_ptr<ControlList> cl, double val, Controllable::GroupControlDisposition gcd) { + /* Note that we require that all controls in the ControlList are of the + same type. + */ + if (cl->empty()) { + return; + } + for (ControlList::iterator c = cl->begin(); c != cl->end(); ++c) { (*c)->set_value (val, gcd); } + + /* some controls need global work to take place after they are set. Do + * that here. + */ + + switch (cl->front()->parameter().type()) { + case SoloAutomation: + update_route_solo_state (); + break; + default: + break; + } } void |