Add SLAudio renderer for Steam Link

This commit is contained in:
Cameron Gutman 2019-03-22 23:08:10 -07:00
commit b7116657d9
4 changed files with 104 additions and 12 deletions

View file

@ -0,0 +1,20 @@
#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 bool submitAudio(short* audioBuffer, int audioSize);
private:
CSLAudioContext* m_AudioContext;
CSLAudioStream* m_AudioStream;
};