moonlight-qt/app/streaming/audio/renderers/slaud.h

23 lines
499 B
C
Raw Normal View History

2019-03-23 06:08:10 +00:00
#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:
static void slLogCallback(void* context, ESLAudioLog logLevel, const char* message);
2019-03-23 06:08:10 +00:00
CSLAudioContext* m_AudioContext;
CSLAudioStream* m_AudioStream;
};