dolphin/Source/Core/AudioCommon
JosJuice f99d3dbd5c 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-05-25 11:59:33 +02: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 AudioCommon: Make cubeb sound backend default on Linux. 2025-04-21 16:25:40 -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 Core and AudioCommon: Use AsyncWorkThread. 2025-05-01 22:55:23 -05:00
CubebStream.h Core and AudioCommon: Use AsyncWorkThread. 2025-05-01 22:55:23 -05:00
CubebUtils.cpp CubebUtils: Add COM helper class 2025-05-07 20:33:22 +04:00
CubebUtils.h CubebUtils: Add COM helper class 2025-05-07 20:33:22 +04: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 Mixer: Use Doubles for Sample Rate Conversion. 2025-04-05 13:46:37 -05:00
Mixer.h Improve Performance of Granular Buffering + User Adjustable Buffer Size 2025-04-01 18:17:21 -04: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-05-25 11:59:33 +02:00
OpenSLESStream.h Android: Ask system for optimal audio buffer size and sample rate 2025-05-25 11:59:33 +02: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