From c04369f4f16f9e29ef4a8226f3ca02fd1f37a81f Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 31 Oct 2019 03:49:15 +0100 Subject: [PATCH] DSP device MIMO engine cosmetic changes --- sdrbase/dsp/dspdevicemimoengine.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdrbase/dsp/dspdevicemimoengine.cpp b/sdrbase/dsp/dspdevicemimoengine.cpp index 3cbb22052..eb17a43e6 100644 --- a/sdrbase/dsp/dspdevicemimoengine.cpp +++ b/sdrbase/dsp/dspdevicemimoengine.cpp @@ -314,18 +314,18 @@ void DSPDeviceMIMOEngine::workSampleSourceFifos() std::vector vbegin; vbegin.resize(sampleFifo->getNbStreams()); - unsigned int amount = sampleFifo->remainderSync(); + unsigned int remainder = sampleFifo->remainderSync(); - while ((amount > 0) && (m_inputMessageQueue.size() == 0)) + while ((remainder > 0) && (m_inputMessageQueue.size() == 0)) { - // pull remainderSync() samples from the sources by stream + // pull samples from the sources by stream for (unsigned int streamIndex = 0; streamIndex < sampleFifo->getNbStreams(); streamIndex++) { - workSamplesSource(vbegin[streamIndex], amount, streamIndex); + workSamplesSource(vbegin[streamIndex], remainder, streamIndex); } // write pulled samples to FIFO - sampleFifo->writeSync(vbegin, amount); - // get new amount - amount = sampleFifo->remainderSync(); + sampleFifo->writeSync(vbegin, remainder); + // get new remainder + remainder = sampleFifo->remainderSync(); } }