mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
25 lines
555 B
C++
25 lines
555 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 void* getAudioBuffer(int* size);
|
|
|
|
virtual bool submitAudio(int bytesWritten);
|
|
|
|
private:
|
|
static void slLogCallback(void* context, ESLAudioLog logLevel, const char* message);
|
|
|
|
CSLAudioContext* m_AudioContext;
|
|
CSLAudioStream* m_AudioStream;
|
|
int m_AudioBufferSize;
|
|
};
|