mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 13:15:44 +01:00
Fix MIDI meter reset
This commit is contained in:
parent
0402f1a43d
commit
9a073c1fae
1 changed files with 5 additions and 2 deletions
|
|
@ -357,8 +357,11 @@ float
|
|||
PeakMeter::meter_level (uint32_t n, MeterType type)
|
||||
{
|
||||
if (g_atomic_int_get (&_reset_max)) {
|
||||
/* max-peak implies DPM reset */
|
||||
return minus_infinity ();
|
||||
if (n < current_meters.n_midi () && type != MeterMaxPeak) {
|
||||
return 0;
|
||||
} else {
|
||||
return minus_infinity ();
|
||||
}
|
||||
}
|
||||
|
||||
float mcptmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue