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:
@@ -64,18 +64,12 @@ PluginInstanceGUI* UDPSrcPlugin::createRxChannelGUI(const QString& channelName,
|
||||
}
|
||||
}
|
||||
|
||||
BasebandSampleSink* UDPSrcPlugin::createRxChannel(const QString& channelName, DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
if(channelName == UDPSrc::m_channelIdURI)
|
||||
{
|
||||
UDPSrc* sink = new UDPSrc(deviceAPI);
|
||||
return sink;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
ChannelSinkAPI* UDPSrcPlugin::createRxChannel(DeviceSourceAPI *deviceAPI)
|
||||
BasebandSampleSink* UDPSrcPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
return new UDPSrc(deviceAPI);
|
||||
}
|
||||
|
||||
ChannelSinkAPI* UDPSrcPlugin::createRxChannelCS(DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
return new UDPSrc(deviceAPI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user