Use integer arithmetic to calculate number of samples per bin
This commit is contained in:
parent
f8dc6d93ec
commit
69bf9d36aa
@ -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…
Reference in New Issue
Block a user