diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-08 18:55:05 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-08 18:55:05 +0100 |
commit | bbbb874c0318fa4a136431619bf91a939984530c (patch) | |
tree | 89a2832113495a1b6d3db9f950e6ed8cb04c6f23 /libs/ardour/automation_control.cc | |
parent | 234ea15499e71484b4da7ca890b49163f3befca5 (diff) |
an automation control that has to do things before its value is set in an RT context should potentially tell its ControlGroup
This fixes record-enable controls in a group failing generate
a call to the required stuff for tracks (moving meter position,
preparing diskstream) #7213
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index be81e28dd5..c090bca364 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -86,6 +86,16 @@ AutomationControl::get_value() const } void +AutomationControl::pre_realtime_queue_stuff (double val, PBD::Controllable::GroupControlDisposition gcd) +{ + if (_group && _group->use_me (gcd)) { + _group->pre_realtime_queue_stuff (val); + } else { + do_pre_realtime_queue_stuff (val); + } +} + +void AutomationControl::set_value (double val, PBD::Controllable::GroupControlDisposition gcd) { if (!writable()) { |