Device API: fixed channel add/remove on streams with index > 0

This commit is contained in:
f4exb 2020-09-07 00:13:27 +02:00
parent f9f70d91e3
commit 9667b9c1cc
1 changed files with 2 additions and 4 deletions

View File

@ -70,18 +70,16 @@ void DeviceAPI::addChannelSink(BasebandSampleSink* sink, int streamIndex)
if (m_deviceSourceEngine) { if (m_deviceSourceEngine) {
m_deviceSourceEngine->addSink(sink); m_deviceSourceEngine->addSink(sink);
} else if (m_deviceMIMOEngine) { } else if (m_deviceMIMOEngine) {
m_deviceMIMOEngine->addChannelSink(sink); m_deviceMIMOEngine->addChannelSink(sink, streamIndex);
} }
} }
void DeviceAPI::removeChannelSink(BasebandSampleSink* sink, int streamIndex) void DeviceAPI::removeChannelSink(BasebandSampleSink* sink, int streamIndex)
{ {
(void) streamIndex;
if (m_deviceSourceEngine) { if (m_deviceSourceEngine) {
m_deviceSourceEngine->removeSink(sink); m_deviceSourceEngine->removeSink(sink);
} else if (m_deviceMIMOEngine) { } else if (m_deviceMIMOEngine) {
m_deviceMIMOEngine->removeChannelSink(sink); m_deviceMIMOEngine->removeChannelSink(sink, streamIndex);
} }
} }