Wireshark  4.3.0
The Wireshark network protocol analyzer
rtp_audio_routing_filter.h
Go to the documentation of this file.
1 
10 #ifndef RTP_AUDIO_ROUTING_FILTER_H
11 #define RTP_AUDIO_ROUTING_FILTER_H
12 
13 #include "config.h"
14 
15 #include <ui/rtp_media.h>
17 
18 #include <QObject>
19 #include <QIODevice>
20 
21 class AudioRoutingFilter: public QIODevice
22 {
23 public:
24  explicit AudioRoutingFilter(QIODevice *input, bool stereo_required, AudioRouting audio_routing);
25  ~AudioRoutingFilter() { }
26 
27  void close() override;
28  qint64 size() const override;
29  qint64 pos() const override;
30  bool seek(qint64 off) override;
31 
32 protected:
33  qint64 readData(char *data, qint64 maxSize) override;
34  qint64 writeData(const char *data, qint64 maxSize) override;
35 
36 private:
37  QIODevice *input_;
38  bool stereo_required_;
39  AudioRouting audio_routing_;
40 };
41 
42 #endif // RTP_AUDIO_ROUTING_FILTER_H
Definition: rtp_audio_routing_filter.h:22
Definition: rtp_audio_routing.h:28
Definition: tvbuff_lz77huff.c:32