mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 16:27:59 +00:00
24 lines
502 B
C++
24 lines
502 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
#include <QAudioOutput>
|
|
|
|
class QtAudioRenderer : public IAudioRenderer
|
|
{
|
|
public:
|
|
QtAudioRenderer();
|
|
|
|
virtual ~QtAudioRenderer();
|
|
|
|
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);
|
|
|
|
virtual void submitAudio(short* audioBuffer, int audioSize);
|
|
|
|
virtual bool testAudio(int audioConfiguration);
|
|
|
|
virtual int detectAudioConfiguration();
|
|
|
|
private:
|
|
QAudioOutput* m_AudioOutput;
|
|
QIODevice* m_OutputDevice;
|
|
};
|