Small fine tuning xOVS selection for BW 25k (#1430)

* Small fine tuning xOVS selection for BW 25k

* Comments , same growing order ending with  dot.
This commit is contained in:
Brumi-2021 2023-09-02 00:35:43 +02:00 committed by GitHub
parent 5d602ece5c
commit 2435ee780f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,10 +57,10 @@
* The oversample rate is used to increase the sample rate to improve SNR and quality.
* This is also used as the interpolation rate when replaying captures. */
inline OversampleRate get_oversample_rate(uint32_t sample_rate) {
if (sample_rate < 30'000) return OversampleRate::x64; // 25k, 16k, 12k5.
if (sample_rate < 80'000) return OversampleRate::x32; // 75k, 50k, 32k.
if (sample_rate < 25'000) return OversampleRate::x64; // 12k5, 16k.
if (sample_rate < 80'000) return OversampleRate::x32; // 25k, 32k, 50k, 75k.
if (sample_rate < 250'000) return OversampleRate::x16; // 100k, 150k.
if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 650k, 750k, 1Mhz.
if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 750k, 1Mhz.
return OversampleRate::x4; // Top range (1.25Mhz ... 5.5Mhz).
}