13
0

increase width of mono-meters in mixer

This commit is contained in:
Robin Gareus 2013-07-02 18:28:59 +02:00
parent c7057c30d8
commit 97d3393c50

View File

@ -285,7 +285,11 @@ GainMeter::hide_all_meters ()
void void
GainMeterBase::setup_meters (int len) GainMeterBase::setup_meters (int len)
{ {
level_meter->setup_meters(len, 5); int meter_width = 5;
if (_route && _route->shared_peak_meter()->input_streams().n_total() == 1) {
meter_width = 10;
}
level_meter->setup_meters(len, meter_width);
} }
void void
@ -842,7 +846,11 @@ void
GainMeterBase::set_width (Width w, int len) GainMeterBase::set_width (Width w, int len)
{ {
_width = w; _width = w;
level_meter->setup_meters (len); int meter_width = 5;
if (_route && _route->shared_peak_meter()->input_streams().n_total() == 1) {
meter_width = 10;
}
level_meter->setup_meters(len, meter_width);
} }