mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
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:
parent
cb0a4854f5
commit
853ca2ef53
7 changed files with 17 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue