mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-27 19:26:08 +02:00
DSP performance upgrades + bugfix
This commit is contained in:
bladerf_source/src
core/src
dsp
audio.hblock.hclock_recovery.hconvertion.hdemodulator.hfalcon_fec.hfalcon_packet.hfilter.hmath.hmeasure.hpll.hprocessing.hresampling.hrouting.hsink.hsource.htypes.h
utils
gui
menus
falcon9_decoder/src
file_source/src
hackrf_source/src
plutosdr_source/src
recorder/src
rtl_sdr_source/src
rtl_tcp_source/src
sdrplay_source/src
@ -120,8 +120,8 @@ private:
|
||||
while (true) {
|
||||
_this->reader->readSamples(inBuf, blockSize * 2 * sizeof(int16_t));
|
||||
for (int i = 0; i < blockSize; i++) {
|
||||
_this->stream.writeBuf[i].q = (float)inBuf[i * 2] / (float)0x7FFF;
|
||||
_this->stream.writeBuf[i].i = (float)inBuf[(i * 2) + 1] / (float)0x7FFF;
|
||||
_this->stream.writeBuf[i].re = (float)inBuf[i * 2] / (float)0x7FFF;
|
||||
_this->stream.writeBuf[i].im = (float)inBuf[(i * 2) + 1] / (float)0x7FFF;
|
||||
}
|
||||
if (!_this->stream.swap(blockSize)) { break; };
|
||||
}
|
||||
|
Reference in New Issue
Block a user