diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-10 22:41:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-10 22:41:49 +0200 |
commit | 5c47ce32ec9096ba84c1302c8bee6c47b996f142 (patch) | |
tree | df5e67d33ccb4e0278fe5bc26e696f023afef8b1 | |
parent | 19bbbc7fbea1294a391f7382d2814cd0fe77f587 (diff) |
Fix master_send_enable_controllable for Mixbusses
-rw-r--r-- | libs/ardour/route.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index b57002abab..d9cee57441 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5772,13 +5772,15 @@ boost::shared_ptr<AutomationControl> Route::master_send_enable_controllable () const { #ifdef MIXBUS - boost::shared_ptr<ARDOUR::PluginInsert> plug = ch_post(); + if (is_master() || is_monitor() || is_auditioner()) { + return boost::shared_ptr<AutomationControl>(); + } + + boost::shared_ptr<ARDOUR::PluginInsert> plug = mixbus() ? ch_pre () : ch_post(); if (!plug) { return boost::shared_ptr<AutomationControl>(); } -# undef MIXBUS_PORTS_H -# include "../../gtk2_ardour/mixbus_ports.h" - return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (plug->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, port_channel_post_mstr_assign))); + return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (plug->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, mixbus() ? 3 : 19))); #else return boost::shared_ptr<AutomationControl>(); #endif |