mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +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;
|
_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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue