1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Input core creation method implementation in all source plugins

This commit is contained in:
f4exb
2017-09-14 13:34:32 +02:00
parent 25c150c3c5
commit aa5c6c59a5
28 changed files with 174 additions and 19 deletions
+15 -1
View File
@@ -69,6 +69,20 @@ PluginInstanceUI* RTLSDRPlugin::createSampleSourcePluginInstanceGUI(const QStrin
*widget = gui;
return gui;
} else {
return NULL;
return 0;
}
}
DeviceSampleSource *RTLSDRPlugin::createSampleSourcePluginInstanceInput(const QString& sourceId, DeviceSourceAPI *deviceAPI)
{
if (sourceId == m_deviceTypeID)
{
RTLSDRInput* input = new RTLSDRInput(deviceAPI);
return input;
}
else
{
return 0;
}
}