mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 22:02:29 +00:00
20 lines
439 B
C++
20 lines
439 B
C++
#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) const = 0;
|
|
|
|
virtual int detectAudioConfiguration() const = 0;
|
|
};
|