Fix C++11ism
This commit is contained in:
parent
f8c4b70b8e
commit
883f818626
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user