diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-12 21:13:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-12 21:14:50 +0200 |
commit | d64ca9be08331756e936018ea4d06404faa2ca90 (patch) | |
tree | 70b93c7a02c207e99ac88c1e8e555bba2bf22ba0 /libs/ardour/route.cc | |
parent | 7a489dd5532ae53ab943adc1f38c1bc24b4474c9 (diff) |
Properly expose "well known" comp_redux output.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 1b5c0579c1..4ea5eecd13 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5197,20 +5197,23 @@ Route::comp_makeup_controllable () const return boost::shared_ptr<AutomationControl>(); #endif } -boost::shared_ptr<AutomationControl> +boost::shared_ptr<ReadOnlyControl> Route::comp_redux_controllable () const { #ifdef MIXBUS boost::shared_ptr<PluginInsert> comp = ch_comp(); if (!comp) { - return boost::shared_ptr<AutomationControl>(); + return boost::shared_ptr<ReadOnlyControl>(); + } + if (is_master()) { + return comp->control_output (2); + } else { + return comp->control_output (6); } - // XXX redux is an output-port, query via comp->plugin(0)->get_parameter (6) - return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (comp->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 6))); #else - return boost::shared_ptr<AutomationControl>(); + return boost::shared_ptr<ReadOnlyControl>(); #endif } |