Add SLAudio renderer for Steam Link

This commit is contained in:
Cameron Gutman committed 2019-03-22 23:08:10 -07:00
1 parent 2bf3f1b94b
commit b7116657d9
4 files changed
+104 -12

No files matched your search

+20
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;
};