From b2df48263b7a238e1a636a030fda5f18f9ba4054 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 19 May 2016 10:43:39 -0400 Subject: [PATCH 1/1] add generic ::slaved() method to Route --- libs/ardour/ardour/route.h | 1 + libs/ardour/route.cc | 10 ++++++++++ 2 files changed, 11 insertions(+) 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) 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 @@ -5198,6 +5198,16 @@ Route::master_send_enable_controllable () const #endif } +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) const { -- 2.30.2