From: Julien "_FrnchFrgg_" RIVAUD Date: Fri, 15 Jul 2016 21:12:52 +0000 (+0200) Subject: Better choice for ports on external send creation X-Git-Tag: 5.0-pre1~82 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=786cb746d0ce387a6194555e6757ec64c937690b;hp=813b92c85b77e67b75778aaa6727eb58303ada45 Better choice for ports on external send creation Ardour tried to make an educated guess at the initial number of outputs for a new send. It used the channel configuration of the master bus, if it existed, else the channel configuration of the route itself. That guess is good in most cases, but in the case of a track/bus without audio channels, creating a send with audio doesn't make sense. In that case, also use the route outputs as a base for the send configuration. --- diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index c70dc9078a..852acf230f 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2496,7 +2496,7 @@ ProcessorBox::choose_send () boost::shared_ptr send (new Send (*_session, _route->pannable (), _route->mute_master())); /* make an educated guess at the initial number of outputs for the send */ - ChanCount outs = (_session->master_out()) + ChanCount outs = (_route->n_outputs().n_audio() && _session->master_out()) ? _session->master_out()->n_outputs() : _route->n_outputs();