mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 06:12:28 +00:00
19 lines
373 B
C++
19 lines
373 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 bool submitAudio(short* audioBuffer, int audioSize);
|
|
|
|
private:
|
|
SDL_AudioDeviceID m_AudioDevice;
|
|
};
|