From 883f8186267121f2414c30b530407a91a9883541 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Apr 2021 05:31:38 +0200 Subject: [PATCH] Fix C++11ism --- libs/audiographer/src/general/limiter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/audiographer/src/general/limiter.cc b/libs/audiographer/src/general/limiter.cc index 439dcbf319..fadb433544 100644 --- a/libs/audiographer/src/general/limiter.cc +++ b/libs/audiographer/src/general/limiter.cc @@ -72,7 +72,7 @@ Limiter::set_duration (samplecnt_t s) if (_pos != 0 || !_result) { 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); } @@ -93,7 +93,7 @@ Limiter::stats (samplecnt_t n_samples) float peak, gmax, gmin; _limiter.get_stats (&peak, &gmax, &gmin); _cnt -= _spp; - assert (_pos < sizeof (ARDOUR::ExportAnalysis::limiter_pk) / sizeof (float)); + assert (_pos < sizeof (_result->limiter_pk) / sizeof (float)); _result->limiter_pk[_pos++] = peak; } }