mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 22:10:56 +00:00
Decode directly into the audio renderer's buffer to avoid a copy
This commit is contained in:
1 parent
187f47a353
commit
21f2b1224a
9 files changed
+70
-63
No files matched your search
@@ -12,6 +12,8 @@ public:
|
||||
|
||||
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(short* audioBuffer, int audioSize) = 0;
|
||||
virtual bool submitAudio(int bytesWritten) = 0;
|
||||
};
|
||||
Reference in new issue
Block a user