Add BasicUI::set_control() and set_controls()

Towards removing the direct use of Session by surfaces.
This commit is contained in:
David Robillard 2021-06-16 01:37:23 -04:00
parent cbbc6f66ee
commit fad1531b2d
8 changed files with 41 additions and 12 deletions

View file

@ -847,6 +847,24 @@ BasicUI::config ()
return _session->config;
}
void
BasicUI::set_controls (
boost::shared_ptr<ControlList> control_list,
const double val,
const PBD::Controllable::GroupControlDisposition disposition)
{
return _session->set_controls (control_list, val, disposition);
}
void
BasicUI::set_control (
boost::shared_ptr<AutomationControl> control,
const double val,
const PBD::Controllable::GroupControlDisposition disposition)
{
return _session->set_control (control, val, disposition);
}
boost::shared_ptr<Stripable>
BasicUI::monitor_out () const
{