1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 14:34:57 -04:00

Plugin interface: simplify createTxChannel

This commit is contained in:
f4exb
2017-12-23 10:16:27 +01:00
parent 703aa21159
commit 0f7faff299
15 changed files with 21 additions and 61 deletions
+2 -8
View File
@@ -61,15 +61,9 @@ PluginInstanceGUI* SSBModPlugin::createTxChannelGUI(const QString& channelName,
}
}
BasebandSampleSource* SSBModPlugin::createTxChannelBS(const QString& channelName, DeviceSinkAPI *deviceAPI)
BasebandSampleSource* SSBModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
{
if(channelName == SSBMod::m_channelIdURI)
{
SSBMod* source = new SSBMod(deviceAPI);
return source;
} else {
return 0;
}
return new SSBMod(deviceAPI);
}
ChannelSourceAPI* SSBModPlugin::createTxChannelCS(DeviceSinkAPI *deviceAPI)