mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Rx plugins: refactoring of classes (1)
This commit is contained in:
@@ -107,6 +107,24 @@ void DeviceAPI::removeChannelSink(ThreadedBasebandSampleSink* sink, int streamIn
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceAPI::addChannelSink(BasebandSampleSink* sink, int streamIndex)
|
||||
{
|
||||
if (m_deviceSourceEngine) {
|
||||
m_deviceSourceEngine->addSink(sink);
|
||||
} else if (m_deviceMIMOEngine) {
|
||||
m_deviceMIMOEngine->addChannelSink(sink);
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceAPI::removeChannelSink(BasebandSampleSink* sink, int streamIndex)
|
||||
{
|
||||
(void) streamIndex;
|
||||
|
||||
if (m_deviceSourceEngine) {
|
||||
m_deviceSourceEngine->removeSink(sink);
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceAPI::addChannelSource(BasebandSampleSource* source, int streamIndex)
|
||||
{
|
||||
if (m_deviceSinkEngine) {
|
||||
|
||||
Reference in New Issue
Block a user