SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
SWGAudioInputDevice.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAudioInputDevice.h
15  *
16  * Audio input device
17  */
18 
19 #ifndef SWGAudioInputDevice_H_
20 #define SWGAudioInputDevice_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGAudioInputDevice(QString* json);
36  virtual ~SWGAudioInputDevice();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGAudioInputDevice* fromJson(QString &jsonString) override;
44 
45  QString* getName();
46  void setName(QString* name);
47 
48  qint32 getIndex();
49  void setIndex(qint32 index);
50 
51  qint32 getSampleRate();
52  void setSampleRate(qint32 sample_rate);
53 
54  qint32 getIsSystemDefault();
55  void setIsSystemDefault(qint32 is_system_default);
56 
57  qint32 getDefaultUnregistered();
58  void setDefaultUnregistered(qint32 default_unregistered);
59 
60  float getVolume();
61  void setVolume(float volume);
62 
63 
64  virtual bool isSet() override;
65 
66 private:
67  QString* name;
69 
70  qint32 index;
72 
73  qint32 sample_rate;
75 
78 
81 
82  float volume;
84 
85 };
86 
87 }
88 
89 #endif /* SWGAudioInputDevice_H_ */
#define SWG_API
Definition: export.h:124