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 {