Decode directly into the audio renderer's buffer to avoid a copy

This commit is contained in:
Cameron Gutman
2019-05-01 21:27:41 -07:00
parent 187f47a353
commit 21f2b1224a
9 changed files with 70 additions and 63 deletions
+3 -1
View File
@@ -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;
};