13
0

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.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-07-15 23:12:52 +02:00 committed by Robin Gareus
parent 813b92c85b
commit 786cb746d0

View File

@ -2496,7 +2496,7 @@ ProcessorBox::choose_send ()
boost::shared_ptr<Send> 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();