summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/BusyLoopTest.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-06-06 15:38:41 +0200
committerJosJuice <josjuice@gmail.com>2025-05-25 11:59:33 +0200
commitf99d3dbd5ccd80bcd071cf49e689f6b6724df499 (patch)
treec68fc6111b608654dc52fff6c9e909ad93781f48 /Source/UnitTests/Common/BusyLoopTest.cpp
parent34e8fb068f50c585a6f69eca365d1008c898f0c3 (diff)
Android: Ask system for optimal audio buffer size and sample rate
This can reduce audio latency according to https://developer.android.com/ndk/guides/audio/opensl/opensl-prog-notes#perform. Previously we were using the hardcoded values of 48000 Hz and 256 frames per buffer. The sample rate we use with this change is 48000 Hz on all devices I'm aware of, but the buffer size does vary across devices. Terminology note: The old code used the term "sample" to refer to what Android refers to as a "frame". "Frame" is a clearer term to use for this, so I've changed OpenSLESStream's terminology. One frame consists of one sample per channel.
Diffstat (limited to 'Source/UnitTests/Common/BusyLoopTest.cpp')
0 files changed, 0 insertions, 0 deletions