Fix MIDI meter reset

This commit is contained in:
Robin Gareus 2020-04-20 18:38:13 +02:00
parent 0402f1a43d
commit 9a073c1fae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

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