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

Multi device support: pass plugin API to devices input handlers to give access to DSP device engine methods

This commit is contained in:
f4exb
2016-05-12 23:35:30 +02:00
parent 7b0e6fd42e
commit 7707858d57
25 changed files with 62 additions and 45 deletions
+3 -1
View File
@@ -22,6 +22,7 @@
#include "hackrfsettings.h"
#include <QString>
class PluginAPI;
class HackRFThread;
class HackRFInput : public SampleSource {
@@ -64,7 +65,7 @@ public:
{ }
};
HackRFInput();
HackRFInput(PluginAPI *pluginAPI);
virtual ~HackRFInput();
virtual bool init(const Message& message);
@@ -82,6 +83,7 @@ private:
hackrf_device *open_hackrf_from_sequence(int sequence);
void setCenterFrequency(quint64 freq);
PluginAPI *m_pluginAPI;
QMutex m_mutex;
HackRFSettings m_settings;
struct hackrf_device* m_dev;