Skip to content

Commit

Permalink
Implement #1260
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Dec 27, 2023
1 parent f3c5b2c commit b1030cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source_modules/rtl_sdr_source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ class RTLSDRSourceModule : public ModuleManager::Instance {
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
int sampCount = len / 2;
for (int i = 0; i < sampCount; i++) {
_this->stream.writeBuf[i].re = (float)(buf[i * 2] - 127) / 128.0f;
_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;
}
if (!_this->stream.swap(sampCount)) { return; }
}
Expand Down

0 comments on commit b1030cb

Please sign in to comment.