зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2e58759c35
Коммит
3442c30a38
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче