From 5c47ce32ec9096ba84c1302c8bee6c47b996f142 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 10 Oct 2018 22:41:49 +0200 Subject: Fix master_send_enable_controllable for Mixbusses --- libs/ardour/route.cc | 10 ++++++---- 1 file 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 Route::master_send_enable_controllable () const { #ifdef MIXBUS - boost::shared_ptr plug = ch_post(); + if (is_master() || is_monitor() || is_auditioner()) { + return boost::shared_ptr(); + } + + boost::shared_ptr plug = mixbus() ? ch_pre () : ch_post(); if (!plug) { return boost::shared_ptr(); } -# undef MIXBUS_PORTS_H -# include "../../gtk2_ardour/mixbus_ports.h" - return boost::dynamic_pointer_cast (plug->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, port_channel_post_mstr_assign))); + return boost::dynamic_pointer_cast (plug->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, mixbus() ? 3 : 19))); #else return boost::shared_ptr(); #endif -- cgit v1.2.3