Better choice for ports on external send creation
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 15 Jul 2016 21:12:52 +0000 (23:12 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 00:29:58 +0000 (02:29 +0200)
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

index c70dc9078a96b1b015f25612e5b4e1b75d3e3fa3..852acf230f1de0323bf61909ccf2c3005aeb7041 100644 (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();