More fixes idk

This commit is contained in:
Ryzerth
2021-05-03 04:20:48 +02:00
parent 0bc1bd8549
commit 4634c8187f
3 changed files with 23 additions and 22 deletions

View File

@ -128,10 +128,7 @@ private:
while (true) {
_this->reader->readSamples(inBuf, blockSize * 2 * sizeof(int16_t));
for (int i = 0; i < blockSize; i++) {
_this->stream.writeBuf[i].re = (float)inBuf[i * 2] / (float)0x7FFF;
_this->stream.writeBuf[i].im = (float)inBuf[(i * 2) + 1] / (float)0x7FFF;
}
volk_16i_s32f_convert_32f((float*)_this->stream.writeBuf, inBuf, 32768.0f, blockSize * 2);
if (!_this->stream.swap(blockSize)) { break; };
}