DSP device MIMO engine cosmetic changes

This commit is contained in:
f4exb 2019-10-31 03:49:15 +01:00
parent 367cd9c21a
commit c04369f4f1
1 changed files with 7 additions and 7 deletions

View File

@ -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();
} }
} }