From 0d2c470c24027cce57a156561bd4c34a1e4013bf Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Thu, 5 Jan 2023 16:27:54 +0100 Subject: Prefer the AAudio backend over the OpenSL ES backend The last issues have been fixed, and it's now better (and also uses an API that isn't deprecated). --- src/cubeb.c | 8 +++----- 1 file 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 -- cgit v1.2.3