13
0

Use integer arithmetic to calculate number of samples per bin

This commit is contained in:
Matthijs van Otterdijk 2022-04-08 12:30:42 +02:00
parent f8dc6d93ec
commit 69bf9d36aa

View File

@ -105,9 +105,8 @@ Analyser::set_duration (samplecnt_t n_samples)
} }
_n_samples = n_samples; _n_samples = n_samples;
const float width = _result.width; _spp = (_n_samples + 1) / _result.width + 1;
_spp = ceil ((_n_samples + 2.f) / width); _fpp = _spp;
_fpp = ceil ((_n_samples + 2.f) / width);
} }
void void