diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-20 18:38:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-20 18:38:13 +0200 |
commit | 9a073c1fae4b16d68aa97095e5d828163071dfe4 (patch) | |
tree | a861c34856520954dd50a494ea1dd8f77fb4d615 | |
parent | 0402f1a43dfe30bf6ce3864e301189cfe08b1008 (diff) |
Fix MIDI meter reset
-rw-r--r-- | libs/ardour/meter.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index 17602f6900..b302541076 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -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; |