Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
24class AudioRoutingFilter : public QIODevice
25{
26public:
40 explicit AudioRoutingFilter(QIODevice *input, bool stereo_required,
41 AudioRouting audio_routing);
42
45
49 void close() override;
50
56 qint64 size() const override;
57
62 qint64 pos() const override;
63
69 bool seek(qint64 off) override;
70
71protected:
79 qint64 readData(char *data, qint64 maxSize) override;
80
88 qint64 writeData(const char *data, qint64 maxSize) override;
89
90private:
91 QIODevice *input_;
92 bool stereo_required_;
93 AudioRouting audio_routing_;
94};
95
96#endif // RTP_AUDIO_ROUTING_FILTER_H
A QIODevice filter that applies audio routing to a raw PCM stream.
Definition rtp_audio_routing_filter.h:25
qint64 pos() const override
Return the current read position within the stream.
Definition rtp_audio_routing_filter.cpp:37
~AudioRoutingFilter()
Destroy the filter. The upstream device is not closed or deleted.
Definition rtp_audio_routing_filter.h:44
qint64 writeData(const char *data, qint64 maxSize) override
Not supported — this filter is read-only.
Definition rtp_audio_routing_filter.cpp:98
qint64 readData(char *data, qint64 maxSize) override
Read and route up to maxSize bytes from the upstream device.
Definition rtp_audio_routing_filter.cpp:59
qint64 size() const override
Return the total byte size of the audio stream.
Definition rtp_audio_routing_filter.cpp:26
bool seek(qint64 off) override
Seek to an absolute byte offset in the stream.
Definition rtp_audio_routing_filter.cpp:48
void close() override
Close this filter device.
Definition rtp_audio_routing_filter.cpp:21
Encapsulates the mute state and channel assignment for one audio stream.
Definition rtp_audio_routing.h:35
Definition tvbuff_lz77huff.c:32