From 786cb746d0ce387a6194555e6757ec64c937690b Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Fri, 15 Jul 2016 23:12:52 +0200 Subject: [PATCH] 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. --- gtk2_ardour/processor_box.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2