More work on the BladeRF support

This commit is contained in:
Ryzerth
2021-05-02 02:23:10 +02:00
parent 66150922c7
commit 6e4f502454
2 changed files with 47 additions and 26 deletions

View File

@ -198,6 +198,7 @@ private:
AudioSink* _this = (AudioSink*)userData;
int count = _this->stereoPacker.out.read();
if (count < 0) { return 0; }
if (nBufferFrames != count) { spdlog::warn("Buffer size missmatch, wanted {0}, was asked for {1}", count, nBufferFrames); }
memcpy(outputBuffer, _this->stereoPacker.out.readBuf, nBufferFrames * sizeof(dsp::stereo_t));
_this->stereoPacker.out.flush();
return 0;