1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Fallback of sample sink vector in test MI source and device MIMO engine

This commit is contained in:
f4exb
2019-09-10 18:44:43 +02:00
parent 7a1fa085c5
commit 0a03c5d587
7 changed files with 78 additions and 21 deletions
+10 -1
View File
@@ -52,7 +52,7 @@ SampleSourceFifo* DeviceSampleMIMO::getSampleSourceFifo(unsigned int index)
}
}
SampleSinkVector* DeviceSampleMIMO::getSampleSinkFifo(unsigned int index)
SampleSinkFifo* DeviceSampleMIMO::getSampleSinkFifo(unsigned int index)
{
if (index >= m_sampleSinkFifos.size()) {
return nullptr;
@@ -60,3 +60,12 @@ SampleSinkVector* DeviceSampleMIMO::getSampleSinkFifo(unsigned int index)
return &m_sampleSinkFifos[index];
}
}
SampleSinkVector* DeviceSampleMIMO::getSampleSinkVector(unsigned int index)
{
if (index >= m_sampleSinkVectors.size()) {
return nullptr;
} else {
return &m_sampleSinkVectors[index];
}
}