From 27bcc55e8152b9cfa1ad631e72e21f385c66a53a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 31 Jan 2021 19:57:11 -0800 Subject: Set the oboe stream buffer size --- alc/backends/oboe.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alc/backends') diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp index 5b0d121d..a2d9e4b2 100644 --- a/alc/backends/oboe.cpp +++ b/alc/backends/oboe.cpp @@ -135,6 +135,8 @@ bool OboePlayback::reset() if(result != oboe::Result::OK) throw al::backend_exception{al::backend_error::DeviceError, "Failed to create stream: %s", oboe::convertToText(result)}; + mStream->setBufferSizeInFrames(mini(static_cast(mDevice->BufferSize), + mStream->getBufferCapacityInFrames())); TRACE("Got stream with properties:\n%s", oboe::convertToText(mStream.get())); switch(mStream->getChannelCount()) -- cgit v1.2.3