summaryrefslogtreecommitdiff
path: root/libs/ardour/vca.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-19 10:44:09 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:43 -0400
commita48888e68830c8fac147c00733e2709bd18986fd (patch)
tree8b23cb5ed0a95a84bc2c2bdbe223a5223323ce4b /libs/ardour/vca.cc
parentb2df48263b7a238e1a636a030fda5f18f9ba4054 (diff)
add slaved_to() and slaved() methods to VCA
Diffstat (limited to 'libs/ardour/vca.cc')
-rw-r--r--libs/ardour/vca.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/ardour/vca.cc b/libs/ardour/vca.cc
index d3c614debf..87853f7850 100644
--- a/libs/ardour/vca.cc
+++ b/libs/ardour/vca.cc
@@ -172,3 +172,25 @@ VCA::monitoring_state () const
/* XXX this has to get more complex but not clear how */
return MonitoringInput;
}
+
+bool
+VCA::slaved () const
+{
+ if (!_gain_control) {
+ return false;
+ }
+ /* just test one particular control, not all of them */
+ return _gain_control->slaved ();
+}
+
+bool
+VCA::slaved_to (boost::shared_ptr<VCA> vca) const
+{
+ if (!vca || !_gain_control) {
+ return false;
+ }
+
+ /* just test one particular control, not all of them */
+
+ return _gain_control->slaved_to (vca->gain_control());
+}