mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 23:43:43 -04:00
Plugin interface: simplify createRxChannel
This commit is contained in:
@@ -62,18 +62,12 @@ PluginInstanceGUI* DSDDemodPlugin::createRxChannelGUI(const QString& channelName
|
||||
}
|
||||
}
|
||||
|
||||
BasebandSampleSink* DSDDemodPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
if(channelName == DSDDemod::m_channelIdURI)
|
||||
{
|
||||
DSDDemod* sink = new DSDDemod(deviceAPI);
|
||||
return sink;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
ChannelSinkAPI* DSDDemodPlugin::createRxChannel(DeviceSourceAPI *deviceAPI)
|
||||
BasebandSampleSink* DSDDemodPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
return new DSDDemod(deviceAPI);
|
||||
}
|
||||
|
||||
ChannelSinkAPI* DSDDemodPlugin::createRxChannelCS(DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
return new DSDDemod(deviceAPI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user