From 9cd0af6b5124f30bf6479aa6b2afc9762d553084 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 2 Sep 2014 19:33:58 +0200 Subject: [PATCH] compact meter+fader for > 6 channel tracks --- gtk2_ardour/gain_meter.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 2f4942301c..3a9f6692e1 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -305,7 +305,15 @@ GainMeter::setup_meters (int len) { switch (_width) { case Wide: - hbox.set_homogeneous(true); + { + uint32_t meter_channels = 0; + if (_meter) { + meter_channels = _meter->input_streams().n_total(); + } else if (_route) { + meter_channels = _route->shared_peak_meter()->input_streams().n_total(); + } + hbox.set_homogeneous(meter_channels < 7 ? true : false); + } break; case Narrow: hbox.set_homogeneous(false);