Make the trim knob on busses show only if there is audio
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 21 Jul 2016 22:44:22 +0000 (00:44 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sun, 24 Jul 2016 11:51:11 +0000 (13:51 +0200)
commit4093cf6b90e1479ed1589c587baa572b6047d383
tree4af523d1e27aecde623038fcf29bd6c87e66b02a
parentba815a903b679b002f48589e77032ca4a2799feb
Make the trim knob on busses show only if there is audio

The trim knob has been designed to operate only on audio channels. If
the bus has none, hide the knob that would otherwise have no effect at
all.

Factor the trim control show/hide code out of MixerStrip::set_route(),
and also call that code in response to I/O changes in the route.
gtk2_ardour/mixer_strip.cc
gtk2_ardour/mixer_strip.h