mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
24 lines
470 B
C
24 lines
470 B
C
|
#ifndef AUDIOOUTPUTPROXY_H
|
||
|
#define AUDIOOUTPUTPROXY_H
|
||
|
|
||
|
#include <QIODevice>
|
||
|
#include "memring.h"
|
||
|
|
||
|
class AudioOutputProxy : public QIODevice
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit AudioOutputProxy(QObject *parent = 0);
|
||
|
virtual ~AudioOutputProxy();
|
||
|
|
||
|
protected:
|
||
|
qint64 readData(char *data, qint64 maxlen);
|
||
|
qint64 writeData(const char *data, qint64 len);
|
||
|
qint64 bytesAvailable() const;
|
||
|
|
||
|
private:
|
||
|
MemRing<char> *ring_buffer;
|
||
|
};
|
||
|
|
||
|
#endif // AUDIOOUTPUTPROXY_H
|