compact meter+fader for > 6 channel tracks
authorRobin Gareus <robin@gareus.org>
Tue, 2 Sep 2014 17:33:58 +0000 (19:33 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 2 Sep 2014 17:33:58 +0000 (19:33 +0200)
gtk2_ardour/gain_meter.cc

index 2f4942301cd000e9c73e798e4b74cc7e83d22985..3a9f6692e1b41ba4b9f5a1d6b52c66ed841f89b6 100644 (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);