10#ifndef RTP_AUDIO_ROUTING_FILTER_H
11#define RTP_AUDIO_ROUTING_FILTER_H
49 void close()
override;
56 qint64
size()
const override;
62 qint64
pos()
const override;
69 bool seek(qint64 off)
override;
79 qint64
readData(
char *data, qint64 maxSize)
override;
88 qint64
writeData(
const char *data, qint64 maxSize)
override;
92 bool stereo_required_;
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