mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 10:32:38 +00:00
20 lines
452 B
C++
20 lines
452 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* getAudioBuffer(int* size) = 0;
|
|
|
|
// Return false if an unrecoverable error has occurred and the renderer must be reinitialized
|
|
virtual bool submitAudio(int bytesWritten) = 0;
|
|
};
|