Mooooore performance

This commit is contained in:
Ryzerth
2021-06-30 02:48:36 +02:00
parent 24892c854e
commit 8f4942bbe9
4 changed files with 7 additions and 12 deletions

View File

@ -913,6 +913,7 @@ private:
static void streamCB(short *xi, short *xq, sdrplay_api_StreamCbParamsT *params,
unsigned int numSamples, unsigned int reset, void *cbContext) {
SDRPlaySourceModule* _this = (SDRPlaySourceModule*)cbContext;
// TODO: Optimise using volk and math
if (!_this->running) { return; }
for (int i = 0; i < numSamples; i++) {
int id = _this->bufferIndex++;