Bug 1674832 - Use the AAudio backend by default. r=cubeb-reviewers,kinetik

Differential Revision: https://phabricator.services.mozilla.com/D95551
This commit is contained in:
Paul Adenot 2020-11-16 20:24:09 +00:00
Родитель 2e58759c35
Коммит 3442c30a38
3 изменённых файлов: 36 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,31 @@
diff --git a/media/libcubeb/src/cubeb.c b/media/libcubeb/src/cubeb.c
--- a/media/libcubeb/src/cubeb.c
+++ b/media/libcubeb/src/cubeb.c
@@ -227,24 +227,22 @@ cubeb_init(cubeb ** context, char const
wasapi_init,
#endif
#if defined(USE_WINMM)
winmm_init,
#endif
#if defined(USE_SUN)
sun_init,
#endif
+#if defined(USE_AAUDIO)
+ aaudio_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_AUDIOTRACK)
audiotrack_init,
#endif
#if defined(USE_KAI)
kai_init,
#endif
};
int i;

Просмотреть файл

@ -232,6 +232,9 @@ cubeb_init(cubeb ** context, char const * context_name, char const * backend_nam
#if defined(USE_SUN)
sun_init,
#endif
#if defined(USE_AAUDIO)
aaudio_init,
#endif
#if defined(USE_OPENSL)
opensl_init,
#endif

Просмотреть файл

@ -86,3 +86,5 @@ if [ -n "$rev" ]; then
else
echo "Remember to update moz.yaml with the version details."
fi
patch -p3 < ./aaudio_by_default.patch