add slaved_to() and slaved() methods to VCA
[ardour.git] / libs / ardour / vca.cc
index d3c614debf27849da3a572ddfd7fb3a8669118ee..87853f7850995c57a7b1f43a971ba2fba7dcc722 100644 (file)
@@ -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());
+}