We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c5b2c commit b1030cbCopy full SHA for b1030cb
source_modules/rtl_sdr_source/src/main.cpp
@@ -523,8 +523,8 @@ class RTLSDRSourceModule : public ModuleManager::Instance {
523
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
524
int sampCount = len / 2;
525
for (int i = 0; i < sampCount; i++) {
526
- _this->stream.writeBuf[i].re = (float)(buf[i * 2] - 127) / 128.0f;
527
- _this->stream.writeBuf[i].im = (float)(buf[(i * 2) + 1] - 127) / 128.0f;
+ _this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f;
+ _this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f;
528
}
529
if (!_this->stream.swap(sampCount)) { return; }
530
0 commit comments