mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Use integer arithmetic to calculate number of samples per bin
This commit is contained in:
parent
f8dc6d93ec
commit
69bf9d36aa
1 changed files with 2 additions and 3 deletions
|
|
@ -105,9 +105,8 @@ Analyser::set_duration (samplecnt_t n_samples)
|
|||
}
|
||||
_n_samples = n_samples;
|
||||
|
||||
const float width = _result.width;
|
||||
_spp = ceil ((_n_samples + 2.f) / width);
|
||||
_fpp = ceil ((_n_samples + 2.f) / width);
|
||||
_spp = (_n_samples + 1) / _result.width + 1;
|
||||
_fpp = _spp;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue