Add SLAudio renderer for Steam Link
This commit is contained in:
parent
2bf3f1b94b
commit
b7116657d9
4 changed files with 104 additions and 12 deletions
20
app/streaming/audio/renderers/slaud.h
Normal file
20
app/streaming/audio/renderers/slaud.h
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue