13
0

compact meter+fader for > 6 channel tracks

This commit is contained in:
Robin Gareus 2014-09-02 19:33:58 +02:00
parent 5d0e4f7380
commit 9cd0af6b51

View File

@ -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);