Fix Mixbus master-bus tape-saturation controllable
authorRobin Gareus <robin@gareus.org>
Sun, 30 Sep 2018 13:33:43 +0000 (15:33 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 30 Sep 2018 13:34:59 +0000 (15:34 +0200)
libs/ardour/route.cc

index 8b60d68632eade3ef4eccb66678ce1b1960096db..b57002abab7df9fe60214b1ee18595207a0cee1e 100644 (file)
@@ -5433,10 +5433,12 @@ boost::shared_ptr<AutomationControl>
 Route::tape_drive_controllable () const
 {
 #ifdef MIXBUS
-
-       if ( _ch_pre && (is_master() || mixbus()) ) {
+       if (_ch_pre && mixbus()) {
                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
 
        return boost::shared_ptr<AutomationControl>();