dolphin/Source/Core/AudioCommon
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
..
AlsaSoundStream.cpp AudioCommon: unlock mutex explicitly to avoid -Wunused-result warning 2024-06-20 02:25:15 +01:00
AlsaSoundStream.h AudioCommon: rename isValid() to IsValid() 2021-08-08 03:05:03 +01:00
AudioCommon.cpp CMakeLists: Add flag to disable Cubeb 2025-01-25 14:06:55 -05:00
AudioCommon.h AudioCommon: Pass Core::System to AudioCommon functions. 2022-11-06 02:13:58 +01:00
CMakeLists.txt AudioCommon: Added Granular Synthesis 2025-03-14 01:22:35 -05:00
CubebStream.cpp WorkQueueThread: provide name and function at same time 2023-02-04 15:56:27 +13:00
CubebStream.h CMakeLists: Add flag to disable Cubeb 2025-01-25 14:06:55 -05:00
CubebUtils.cpp Cubeb: check correct log level 2024-03-17 01:33:42 +00:00
CubebUtils.h Core: Use extra thread for Cubeb on Windows to not disturb the CoInitialize state of whatever thread happens to call a Cubeb function. 2022-11-26 05:05:57 +01:00
Enums.h AudioPanel: Refactor to use Config system. Some options were changed to a different format, for easier compatibility. 2025-03-26 12:26:01 -07:00
Mixer.cpp AudioCommon: Added Granular Synthesis 2025-03-14 01:22:35 -05:00
Mixer.h AudioCommon: Added Granular Synthesis 2025-03-14 01:22:35 -05:00
NullSoundStream.cpp AudioCommon: make SoundLoop() non-virtual and private 2021-08-08 00:15:05 +01:00
NullSoundStream.h AudioCommon: rename isValid() to IsValid() 2021-08-08 03:05:03 +01:00
OpenALStream.cpp AudioCommon: Added Granular Synthesis 2025-03-14 01:22:35 -05:00
OpenALStream.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
OpenSLESStream.cpp Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00
OpenSLESStream.h Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00
PulseAudioStream.cpp Port Main.DSP to MainSettings 2021-10-15 23:24:46 -04:00
PulseAudioStream.h AudioCommon: rename isValid() to IsValid() 2021-08-08 03:05:03 +01:00
SoundStream.h AudioCommon: rename isValid() to IsValid() 2021-08-08 03:05:03 +01:00
SurroundDecoder.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
SurroundDecoder.h Common: Move FixedSizeQueue into Common namespace 2023-03-22 01:23:15 -04:00
WASAPIStream.cpp windows: replace comdef dependency with winrt 2023-01-23 06:09:01 -08:00
WASAPIStream.h AudioCommon: rename isValid() to IsValid() 2021-08-08 03:05:03 +01:00
WaveFile.cpp Adjust order and spacing of various #includes 2024-07-26 14:28:34 -07:00
WaveFile.h Do not directly store input sample rate, rather just store a divisor for that sample rate, with it using a fixed dividend of 54000000 * 2. 2022-07-03 15:07:06 -07:00