Wireshark  4.3.0
The Wireshark network protocol analyzer
rtp_audio_silence_generator.h
Go to the documentation of this file.
1 
10 #ifndef RTP_AUDIO_SILENCE_GENERATOR_H
11 #define RTP_AUDIO_SILENCE_GENERATOR_H
12 
13 #include "config.h"
14 
15 #include <QIODevice>
16 
17 class AudioSilenceGenerator: public QIODevice
18 {
19 public:
20  explicit AudioSilenceGenerator(QObject *parent = nullptr);
22 
23  qint64 size() const override;
24  qint64 pos() const override;
25  bool seek(qint64 off) override;
26 
27 protected:
28  qint64 readData(char *data, qint64 maxSize) override;
29  qint64 writeData(const char *data, qint64 maxSize) override;
30 
31 private:
32  quint64 pos_;
33 };
34 
35 #endif // RTP_AUDIO_SILENCE_GENERATOR_H
Definition: rtp_audio_silence_generator.h:18