Solve_quality_problem_low_bit_rate_100k_150k_REC_Capture_App (#1367)

* Solve_low_bit_rate_150k_Capture_App

* Applying  review comments.

* format issues

* Adding back requested previous low bit rates
This commit is contained in:
Brumi-2021 2023-08-12 16:20:15 +02:00 committed by GitHub
parent cb0a4854f5
commit 853ca2ef53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 9 deletions

View file

@ -46,10 +46,12 @@
* 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 < 25'000) return OversampleRate::x32;
if (sample_rate < 50'000) return OversampleRate::x16;
if (sample_rate < 50'000) return OversampleRate::x128; // 25kk ,16k, 12k5
if (sample_rate < 100'000) return OversampleRate::x64; // 50k
if (sample_rate < 150'000) return OversampleRate::x32; // 100k
if (sample_rate < 250'000) return OversampleRate::x16; // 150k only
return OversampleRate::x8;
return OversampleRate::x8; // 250k .. 1Mhz
}
/* Gets the actual sample rate for a given sample rate.