Don't add audio outs to non-audio routes with strict I/O
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 6 Jul 2016 22:46:53 +0000 (00:46 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 6 Jul 2016 23:33:42 +0000 (01:33 +0200)
commit6911702f21494ef67252e3706cdc079c26852257
tree426295310172d6d411fef51abec4b9214e96f7a2
parentd7caa89b960cb5136302f687b404f5c7c081c185
Don't add audio outs to non-audio routes with strict I/O

If a route has strict I/O then the main delivery follows the output of
the last processor, but libardour ensures it has at least as many
outputs as inputs in the master strip. A good consequence is that mono
tracks get their expected panner.

An akward side-effect is that MIDI-only routes (e.g. midi tracks or busses
without a synth) get two audio channels that have no use (and indeed no
panner is added because there is nothing to pan).

Skip the completion of audio outs if there was no audio out to begin
with.
libs/ardour/route.cc