mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
20 lines
409 B
C++
20 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;
|
|
};
|