projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0e4f7
)
compact meter+fader for > 6 channel tracks
author
Robin Gareus
<robin@gareus.org>
Tue, 2 Sep 2014 17:33:58 +0000
(19:33 +0200)
committer
Robin Gareus
<robin@gareus.org>
Tue, 2 Sep 2014 17:33:58 +0000
(19:33 +0200)
gtk2_ardour/gain_meter.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/gain_meter.cc
b/gtk2_ardour/gain_meter.cc
index 2f4942301cd000e9c73e798e4b74cc7e83d22985..3a9f6692e1b41ba4b9f5a1d6b52c66ed841f89b6 100644
(file)
--- 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);