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.
SWGAudioOutputDevice.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAudioOutputDevice.h
15  *
16  * Audio output device
17  */
18 
19 #ifndef SWGAudioOutputDevice_H_
20 #define SWGAudioOutputDevice_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  SWGAudioOutputDevice(QString* json);
36  virtual ~SWGAudioOutputDevice();
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 SWGAudioOutputDevice* 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  qint32 getCopyToUdp();
61  void setCopyToUdp(qint32 copy_to_udp);
62 
63  qint32 getUdpUsesRtp();
64  void setUdpUsesRtp(qint32 udp_uses_rtp);
65 
66  qint32 getUdpChannelMode();
67  void setUdpChannelMode(qint32 udp_channel_mode);
68 
69  qint32 getUdpChannelCodec();
70  void setUdpChannelCodec(qint32 udp_channel_codec);
71 
72  qint32 getUdpDecimationFactor();
73  void setUdpDecimationFactor(qint32 udp_decimation_factor);
74 
75  QString* getUdpAddress();
76  void setUdpAddress(QString* udp_address);
77 
78  qint32 getUdpPort();
79  void setUdpPort(qint32 udp_port);
80 
81 
82  virtual bool isSet() override;
83 
84 private:
85  QString* name;
87 
88  qint32 index;
90 
91  qint32 sample_rate;
93 
96 
99 
100  qint32 copy_to_udp;
102 
103  qint32 udp_uses_rtp;
105 
108 
111 
114 
115  QString* udp_address;
117 
118  qint32 udp_port;
120 
121 };
122 
123 }
124 
125 #endif /* SWGAudioOutputDevice_H_ */
#define SWG_API
Definition: export.h:124