Decode directly into the audio renderer's buffer to avoid a copy
This commit is contained in:
parent
187f47a353
commit
21f2b1224a
9 changed files with 70 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue