13
0

Fix C++11ism

This commit is contained in:
Robin Gareus 2021-04-13 05:31:38 +02:00
parent f8c4b70b8e
commit 883f818626
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -72,7 +72,7 @@ Limiter::set_duration (samplecnt_t s)
if (_pos != 0 || !_result) { if (_pos != 0 || !_result) {
return; return;
} }
const size_t n_data = sizeof (ARDOUR::ExportAnalysis::limiter_pk) / sizeof (float); const size_t n_data = sizeof (_result->limiter_pk) / sizeof (float);
_spp = ceilf (s / (float) n_data); _spp = ceilf (s / (float) n_data);
} }
@ -93,7 +93,7 @@ Limiter::stats (samplecnt_t n_samples)
float peak, gmax, gmin; float peak, gmax, gmin;
_limiter.get_stats (&peak, &gmax, &gmin); _limiter.get_stats (&peak, &gmax, &gmin);
_cnt -= _spp; _cnt -= _spp;
assert (_pos < sizeof (ARDOUR::ExportAnalysis::limiter_pk) / sizeof (float)); assert (_pos < sizeof (_result->limiter_pk) / sizeof (float));
_result->limiter_pk[_pos++] = peak; _result->limiter_pk[_pos++] = peak;
} }
} }