1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -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* AMModPlugin::createTxChannelGUI(const QString& channelName, D
}
}
BasebandSampleSource* AMModPlugin::createTxChannelBS(const QString& channelName, DeviceSinkAPI *deviceAPI)
BasebandSampleSource* AMModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
{
if(channelName == AMMod::m_channelIdURI)
{
AMMod* source = new AMMod(deviceAPI);
return source;
} else {
return 0;
}
return new AMMod(deviceAPI);
}
ChannelSourceAPI* AMModPlugin::createTxChannelCS(DeviceSinkAPI *deviceAPI)