add generic ::slaved() method to Route
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 19 May 2016 14:43:39 +0000 (10:43 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:43 +0000 (15:30 -0400)
libs/ardour/ardour/route.h
libs/ardour/route.cc

index 7a6b50436894aa60d7158b51177db369f4b6fd22..ab50403842c0f77ebec7a73a2b83b7c84bdb119f 100644 (file)
@@ -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;
index e393a96648994dc759cd22210b0adcdef00edbd7..5335d69502c258970b91d1dc012ace0e05c79c0a 100644 (file)
@@ -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> vca) const
 {