summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/ardour/route.h1
-rw-r--r--libs/ardour/route.cc10
2 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h
index 7a6b504368..ab50403842 100644
--- a/libs/ardour/ardour/route.h
+++ b/libs/ardour/ardour/route.h
@@ -564,6 +564,7 @@ public:
pframes_t nframes, int declick);
bool slaved_to (boost::shared_ptr<VCA>) const;
+ bool slaved () const;
protected:
friend class Session;
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index e393a96648..5335d69502 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -5199,6 +5199,16 @@ Route::master_send_enable_controllable () const
}
bool
+Route::slaved () const
+{
+ if (!_gain_control) {
+ return false;
+ }
+ /* just test one particular control, not all of them */
+ return _gain_control->slaved ();
+}
+
+bool
Route::slaved_to (boost::shared_ptr<VCA> vca) const
{
if (!vca || !_gain_control) {