mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 12:44:07 +00:00
26 lines
495 B
C++
26 lines
495 B
C++
|
#ifndef AUDIOOUTPUT_H
|
||
|
#define AUDIOOUTPUT_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QScopedPointer>
|
||
|
|
||
|
class AudioOutputPrivate;
|
||
|
class AudioOutput: public QObject
|
||
|
{
|
||
|
public:
|
||
|
AudioOutput( QObject * parent = nullptr );
|
||
|
~AudioOutput();
|
||
|
|
||
|
bool play( const uint8_t * data, qint64 len );
|
||
|
void setAudioFormat( int sampleRate, int channels );
|
||
|
protected:
|
||
|
QScopedPointer< AudioOutputPrivate > d_ptr;
|
||
|
|
||
|
private:
|
||
|
Q_DISABLE_COPY( AudioOutput )
|
||
|
Q_DECLARE_PRIVATE( AudioOutput )
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // AUDIOOUTPUT_H
|