dolphin-emulator/Source/Android
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
..
app Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00
benchmark Android: Update dependencies 2024-04-20 17:53:11 +02:00
gradle/wrapper Android: Upgrade AGP & Gradle 2025-03-04 18:28:01 -07:00
jni Android: Ask system for optimal audio buffer size and sample rate 2025-03-29 11:14:27 +01:00
.gitignore android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00
build.gradle.kts Android: Upgrade AGP & Gradle 2025-03-04 18:28:01 -07:00
code-style-java.xml Android: Update code-style-java for androidx files 2020-09-08 05:59:08 -04:00
gradle.properties Android: Fix Gradle deprecation 2024-05-25 22:13:25 -04:00
gradlew Android: Upgrade AGP & Gradle 2025-03-04 18:28:01 -07:00
gradlew.bat Android: Upgrade AGP & Gradle 2025-03-04 18:28:01 -07:00
settings.gradle.kts android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00