Wireshark  4.3.0
The Wireshark network protocol analyzer
rtp_audio_routing.h
Go to the documentation of this file.
1 
12 #ifndef RTP_AUDIO_ROUTING_H
13 #define RTP_AUDIO_ROUTING_H
14 
15 #include "config.h"
16 
17 #include <QMetaType>
18 
19 typedef enum {
20  channel_any, // Used just for changes of mute
21  channel_mono, // Play
22  channel_stereo_left, // L
23  channel_stereo_right, // R
24  channel_stereo_both // L+R
25 } audio_routing_channel_t;
26 
28 {
29 public:
30  AudioRouting() = default;
31  ~AudioRouting() = default;
32  AudioRouting(const AudioRouting &) = default;
33  AudioRouting &operator=(const AudioRouting &) = default;
34 
35  AudioRouting(bool muted, audio_routing_channel_t channel);
36  bool isMuted() { return muted_; }
37  void setMuted(bool muted) { muted_ = muted; }
38  audio_routing_channel_t getChannel() { return channel_; }
39  void setChannel(audio_routing_channel_t channel) { channel_ = channel; }
40  char const *formatAudioRoutingToString();
41  AudioRouting getNextChannel(bool stereo_available);
42  AudioRouting convert(bool stereo_available);
43  void mergeAudioRouting(AudioRouting new_audio_routing);
44 
45 private:
46  bool muted_;
47  audio_routing_channel_t channel_;
48 };
49 Q_DECLARE_METATYPE(AudioRouting)
50 
51 #define AUDIO_MUTED true
52 #define AUDIO_UNMUTED false
53 
54 
55 #endif // RTP_AUDIO_ROUTING_H
Definition: rtp_audio_routing.h:28