DSP performance upgrades + bugfix

This commit is contained in:
Ryzerth
2021-03-29 21:53:43 +02:00
parent b72246d769
commit 27394a091f
29 changed files with 942 additions and 355 deletions

View File

@ -726,8 +726,8 @@ private:
if (!_this->running) { return; }
for (int i = 0; i < numSamples; i++) {
int id = _this->bufferIndex++;
_this->stream.writeBuf[id].i = (float)xq[i] / 32768.0f;
_this->stream.writeBuf[id].q = (float)xi[i] / 32768.0f;
_this->stream.writeBuf[id].re = (float)xi[i] / 32768.0f;
_this->stream.writeBuf[id].im = (float)xq[i] / 32768.0f;
if (_this->bufferIndex >= _this->bufferSize) {
_this->stream.swap(_this->bufferSize);