dolphin-emulator/Source/Android/jni/AndroidCommon
JosJuice 489d0366d9 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.
2025-03-29 11:14:27 +01:00
..
AndroidCommon.cpp Simplify std::remove with std::erase 2024-10-17 18:38:34 -07:00
AndroidCommon.h AndroidCommon: Resolve -Wsign-compare warning 2023-12-11 18:06:40 -05:00
CMakeLists.txt CMake: Fix build errors exposed by making common dependent on fmt 2020-10-19 14:36:09 +02:00
IDCache.cpp Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00
IDCache.h Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00