mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-17 06:33:07 +00:00
21 lines
409 B
C
21 lines
409 B
C
|
#pragma once
|
||
|
|
||
|
#include "renderer.h"
|
||
|
#include <SLAudio.h>
|
||
|
|
||
|
class SLAudioRenderer : public IAudioRenderer
|
||
|
{
|
||
|
public:
|
||
|
SLAudioRenderer();
|
||
|
|
||
|
virtual ~SLAudioRenderer();
|
||
|
|
||
|
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);
|
||
|
|
||
|
virtual bool submitAudio(short* audioBuffer, int audioSize);
|
||
|
|
||
|
private:
|
||
|
CSLAudioContext* m_AudioContext;
|
||
|
CSLAudioStream* m_AudioStream;
|
||
|
};
|