X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Froute.cc;h=df708bbd30be78cca1dff6f36ec686e7e95b4423;hb=4250940ad83200e065b966d0646c75a48bb0f73d;hp=cb27b5447256b2be20aaa2d173356af28e625748;hpb=47246c86e28beefee57cb409ea60e3b4573414b9;p=ardour.git diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index cb27b54472..df708bbd30 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 +Route::tape_drive_controllable () const +{ +#ifdef MIXBUS + + if ( _ch_pre && (is_master() || mixbus()) ) { + return boost::dynamic_pointer_cast (_ch_pre->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 4))); + } +#endif + + return boost::shared_ptr(); +} + string Route::eq_band_name (uint32_t band) const {