aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-01-05 16:27:54 +0100
committerPaul Adenot <[email protected]>2023-01-05 16:27:56 +0100
commit0d2c470c24027cce57a156561bd4c34a1e4013bf (patch)
treedf97dd6e82533dcdcc0bc5b232afa7152854e656
parent1736e4aed380a26373c93f6a0e9d8473d4a2f925 (diff)
downloadcubeb-aaudio-by-default.tar.gz
cubeb-aaudio-by-default.zip
Prefer the AAudio backend over the OpenSL ES backendaaudio-by-default
The last issues have been fixed, and it's now better (and also uses an API that isn't deprecated).
-rw-r--r--src/cubeb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cubeb.c b/src/cubeb.c
index cf29e12..eca2c63 100644
--- a/src/cubeb.c
+++ b/src/cubeb.c
@@ -252,14 +252,12 @@ cubeb_init(cubeb ** context, char const * context_name,
#if defined(USE_SUN)
sun_init,
#endif
-#if defined(USE_OPENSL)
- opensl_init,
-#endif
- // TODO: should probably be preferred over OpenSLES when available.
- // Initialization will fail on old android devices.
#if defined(USE_AAUDIO)
aaudio_init,
#endif
+#if defined(USE_OPENSL)
+ opensl_init,
+#endif
#if defined(USE_AUDIOTRACK)
audiotrack_init,
#endif