mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 22:02:29 +00:00
24 lines
518 B
C++
24 lines
518 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;
|
|
Uint32 m_ChannelCount;
|
|
Uint32 m_PendingDrops;
|
|
Uint32 m_PendingHardDrops;
|
|
Uint32 m_SampleIndex;
|
|
Uint32 m_BaselinePendingData;
|
|
};
|