diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-10-15 18:13:28 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-10-19 11:53:55 -0500 |
commit | 23c2b751aa1f80d5129d13d4bda39ecc05ac2aac (patch) | |
tree | cff23f9bc43953349decfa709f622c1b51e134da /libs/ardour/route.cc | |
parent | 618020424e7be8e73d7003124dee6f5b3e61221a (diff) |
US2400: map knobs for mixbus strips, when selected.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index cb27b54472..4636d7957c 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5420,6 +5420,19 @@ Route::filter_enable_controllable (bool) const #endif } +boost::shared_ptr<AutomationControl> +Route::tape_drive_controllable () const +{ +#ifdef MIXBUS + + if ( _ch_pre && (is_master() || mixbus()) ) { + return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (_ch_pre->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 4))); + } + + return boost::shared_ptr<AutomationControl>(); +#endif +} + string Route::eq_band_name (uint32_t band) const { |