summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-08 15:35:30 +0200
committerRobin Gareus <robin@gareus.org>2017-07-08 15:35:30 +0200
commit82278af424461a9d966dc886302ceb24e775a32c (patch)
tree4c95c72a31ccab21674c6f9c9af52b3e4b9db2c2 /libs/ardour/automation_control.cc
parent60df2a342c2f244d6b002692caa279c17dc5d26d (diff)
Add API to expand/flatten AC groups
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc
index 30eb19fd5a..acd4c7a760 100644
--- a/libs/ardour/automation_control.cc
+++ b/libs/ardour/automation_control.cc
@@ -136,6 +136,16 @@ AutomationControl::set_value (double val, PBD::Controllable::GroupControlDisposi
}
}
+ControlList
+AutomationControl::grouped_controls () const
+{
+ if (_group && _group->use_me (PBD::Controllable::UseGroup)) {
+ return _group->controls ();
+ } else {
+ return ControlList ();
+ }
+}
+
/** Set the value and do the right thing based on automation state
* (e.g. record if necessary, etc.)
* @param value `user' value