2018-09-13 13:23:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "renderer.h"
|
|
|
|
#include <SDL.h>
|
|
|
|
|
|
|
|
class SdlAudioRenderer : public IAudioRenderer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SdlAudioRenderer();
|
|
|
|
|
|
|
|
virtual ~SdlAudioRenderer();
|
|
|
|
|
|
|
|
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);
|
|
|
|
|
2019-05-02 04:27:41 +00:00
|
|
|
virtual void* getAudioBuffer(int* size);
|
|
|
|
|
|
|
|
virtual bool submitAudio(int bytesWritten);
|
2018-09-13 13:23:06 +00:00
|
|
|
|
2019-06-23 19:49:37 +00:00
|
|
|
virtual int getCapabilities();
|
|
|
|
|
2018-09-13 13:23:06 +00:00
|
|
|
private:
|
|
|
|
SDL_AudioDeviceID m_AudioDevice;
|
2019-05-02 04:27:41 +00:00
|
|
|
void* m_AudioBuffer;
|
2018-09-13 13:23:06 +00:00
|
|
|
};
|