13
0

Fix Mixbus master-bus tape-saturation controllable

This commit is contained in:
Robin Gareus 2018-09-30 15:33:43 +02:00
parent cf652331ad
commit 87559a6054

View File

@ -5433,10 +5433,12 @@ boost::shared_ptr<AutomationControl>
Route::tape_drive_controllable () const Route::tape_drive_controllable () const
{ {
#ifdef MIXBUS #ifdef MIXBUS
if (_ch_pre && 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::dynamic_pointer_cast<ARDOUR::AutomationControl> (_ch_pre->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 4)));
} }
if (_ch_pre && is_master()) {
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (_ch_pre->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 1)));
}
#endif #endif
return boost::shared_ptr<AutomationControl>(); return boost::shared_ptr<AutomationControl>();