diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-19 10:43:39 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:43 -0400 |
commit | b2df48263b7a238e1a636a030fda5f18f9ba4054 (patch) | |
tree | d87b65e4118761c8e5a07d307d5e95e23d9cc52a /libs/ardour/route.cc | |
parent | c1592864e1cd80f5cfcaab3c5b061f586e107de6 (diff) |
add generic ::slaved() method to Route
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |