Extend REC low bit rate bandwith options in Capture App till 75khz (#1380)

* working_x32_Capture_till_75Khz

* format issues

* apply better accurate comments

* auto format issues
This commit is contained in:
Brumi-2021
2023-08-16 23:26:59 +02:00
committed by GitHub
parent e1cc0b1ad0
commit 12dbf957b3
6 changed files with 97 additions and 19 deletions

View File

@@ -145,11 +145,11 @@ OversampleRate RecordView::get_oversample_rate(uint32_t sample_rate) {
auto rate = ::get_oversample_rate(sample_rate);
// Currently proc_capture only supports x8 and x16 for decimation.
if (rate < OversampleRate::x8)
// Currently proc_capture only supports x8, x16, x32 for decimation.
if (rate < OversampleRate::x8) // clipping while x4 is not implemented yet.
rate = OversampleRate::x8;
else if (rate > OversampleRate::x16)
rate = OversampleRate::x16;
else if (rate > OversampleRate::x32) // clipping while x64 is not implemented yet .
rate = OversampleRate::x32;
return rate;
}