mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
24 lines
463 B
C++
24 lines
463 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
#include <SDL.h>
|
|
|
|
class SdlAudioRenderer : public IAudioRenderer
|
|
{
|
|
public:
|
|
SdlAudioRenderer();
|
|
|
|
virtual ~SdlAudioRenderer();
|
|
|
|
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);
|
|
|
|
virtual void* getAudioBuffer(int* size);
|
|
|
|
virtual bool submitAudio(int bytesWritten);
|
|
|
|
virtual int getCapabilities();
|
|
|
|
private:
|
|
SDL_AudioDeviceID m_AudioDevice;
|
|
void* m_AudioBuffer;
|
|
};
|