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
commit 21f2b1224a
9 changed files with 70 additions and 63 deletions

View file

@ -13,7 +13,9 @@ public:
virtual bool prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);
virtual bool submitAudio(short* audioBuffer, int audioSize);
virtual void* getAudioBuffer(int* size);
virtual bool submitAudio(int bytesWritten);
private:
int scoreChannelLayout(const struct SoundIoChannelLayout* layout, const OPUS_MULTISTREAM_CONFIGURATION* opusConfig);