Refactor audio rendering into a separate class

This commit is contained in:
Cameron Gutman committed 2018-09-13 06:23:06 -07:00
1 parent 9e2fd67487
commit 12496e4432
9 files changed
+244 -131

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <Limelight.h>
#define MAX_CHANNELS 6
#define SAMPLES_PER_FRAME 240
class IAudioRenderer
{
public:
virtual ~IAudioRenderer() {}
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig) = 0;
virtual void submitAudio(short* audioBuffer, int audioSize) = 0;
virtual bool testAudio(int audioConfiguration) = 0;
virtual int detectAudioConfiguration() = 0;
};