mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-11-11 16:50:42 -05:00
Device API: fixed channel add/remove on streams with index > 0
This commit is contained in:
parent
0b8c505598
commit
25ff9acb8e
@ -70,18 +70,16 @@ void DeviceAPI::addChannelSink(BasebandSampleSink* sink, int streamIndex)
|
||||
if (m_deviceSourceEngine) {
|
||||
m_deviceSourceEngine->addSink(sink);
|
||||
} else if (m_deviceMIMOEngine) {
|
||||
m_deviceMIMOEngine->addChannelSink(sink);
|
||||
m_deviceMIMOEngine->addChannelSink(sink, streamIndex);
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceAPI::removeChannelSink(BasebandSampleSink* sink, int streamIndex)
|
||||
{
|
||||
(void) streamIndex;
|
||||
|
||||
if (m_deviceSourceEngine) {
|
||||
m_deviceSourceEngine->removeSink(sink);
|
||||
} else if (m_deviceMIMOEngine) {
|
||||
m_deviceMIMOEngine->removeChannelSink(sink);
|
||||
m_deviceMIMOEngine->removeChannelSink(sink, streamIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user