mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-07 03:58:38 -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;
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user