diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-07-15 23:12:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-16 02:29:58 +0200 |
commit | 786cb746d0ce387a6194555e6757ec64c937690b (patch) | |
tree | b2aa54ac8b6eac6fd4e2ddceafaec123c4289b97 /gtk2_ardour/processor_box.cc | |
parent | 813b92c85b77e67b75778aaa6727eb58303ada45 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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> 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(); |