1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

FCDProPlus: moved open/close source to input so that open source failure is correctly reported as an error

This commit is contained in:
f4exb
2018-11-18 21:56:33 +01:00
parent f5357e9917
commit 865d26cc15
5 changed files with 129 additions and 105 deletions
@@ -21,6 +21,8 @@
#include <QByteArray>
#include <inttypes.h>
#include <alsa/asoundlib.h>
#include <dsp/devicesamplesource.h>
#include "fcdproplussettings.h"
#include "fcdhid.h"
@@ -147,11 +149,14 @@ public:
private:
bool openDevice();
void closeDevice();
bool openSource(const char *filename);
void closeSource();
void applySettings(const FCDProPlusSettings& settings, bool force);
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response, const FCDProPlusSettings& settings);
DeviceSourceAPI *m_deviceAPI;
hid_device *m_dev;
snd_pcm_t* fcd_handle;
QMutex m_mutex;
FCDProPlusSettings m_settings;
FCDProPlusThread* m_FCDThread;