mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix C++11ism
This commit is contained in:
parent
c1c2be8589
commit
0b961265e9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue