moonlight-qt/app/streaming/audio/renderers/renderer.h
2019-06-23 12:49:37 -07:00

18 lines
438 B
C++

#pragma once
#include <Limelight.h>
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;
virtual int getCapabilities() = 0;
};