mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-29 16:26:47 -04:00
DSP device MIMO engine cosmetic changes
This commit is contained in:
parent
367cd9c21a
commit
c04369f4f1
@ -314,18 +314,18 @@ void DSPDeviceMIMOEngine::workSampleSourceFifos()
|
|||||||
|
|
||||||
std::vector<SampleVector::iterator> vbegin;
|
std::vector<SampleVector::iterator> vbegin;
|
||||||
vbegin.resize(sampleFifo->getNbStreams());
|
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++) {
|
for (unsigned int streamIndex = 0; streamIndex < sampleFifo->getNbStreams(); streamIndex++) {
|
||||||
workSamplesSource(vbegin[streamIndex], amount, streamIndex);
|
workSamplesSource(vbegin[streamIndex], remainder, streamIndex);
|
||||||
}
|
}
|
||||||
// write pulled samples to FIFO
|
// write pulled samples to FIFO
|
||||||
sampleFifo->writeSync(vbegin, amount);
|
sampleFifo->writeSync(vbegin, remainder);
|
||||||
// get new amount
|
// get new remainder
|
||||||
amount = sampleFifo->remainderSync();
|
remainder = sampleFifo->remainderSync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user