Try improving Android detection.

Issue from raylib: https://github.com/raysan5/raylib/issues/2118
This commit is contained in:
David Reid
2022-10-21 09:44:43 +10:00
parent 1778a5e839
commit c3dbcc5717
2 changed files with 10 additions and 6 deletions
+4
View File
@@ -1,3 +1,7 @@
v0.11.11 - TBD
=====================
v0.11.10 - 2022-10-20 v0.11.10 - 2022-10-20
===================== =====================
* Add support for setting the device notification callback when initializing an engine object. * Add support for setting the device notification callback when initializing an engine object.
+6 -6
View File
@@ -1,6 +1,6 @@
/* /*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file. Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.10 - 2022-10-20 miniaudio - v0.11.11 - TBD
David Reid - mackron@gmail.com David Reid - mackron@gmail.com
@@ -3664,7 +3664,7 @@ extern "C" {
#define MA_VERSION_MAJOR 0 #define MA_VERSION_MAJOR 0
#define MA_VERSION_MINOR 11 #define MA_VERSION_MINOR 11
#define MA_VERSION_REVISION 10 #define MA_VERSION_REVISION 11
#define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION) #define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION)
#if defined(_MSC_VER) && !defined(__clang__) #if defined(_MSC_VER) && !defined(__clang__)
@@ -6151,10 +6151,6 @@ This section contains the APIs for device playback and capture. Here is where yo
#define MA_SUPPORT_PULSEAUDIO #define MA_SUPPORT_PULSEAUDIO
#define MA_SUPPORT_JACK #define MA_SUPPORT_JACK
#endif #endif
#if defined(MA_ANDROID)
#define MA_SUPPORT_AAUDIO
#define MA_SUPPORT_OPENSL
#endif
#if defined(__OpenBSD__) /* <-- Change this to "#if defined(MA_BSD)" to enable sndio on all BSD flavors. */ #if defined(__OpenBSD__) /* <-- Change this to "#if defined(MA_BSD)" to enable sndio on all BSD flavors. */
#define MA_SUPPORT_SNDIO /* sndio is only supported on OpenBSD for now. May be expanded later if there's demand. */ #define MA_SUPPORT_SNDIO /* sndio is only supported on OpenBSD for now. May be expanded later if there's demand. */
#endif #endif
@@ -6165,6 +6161,10 @@ This section contains the APIs for device playback and capture. Here is where yo
#define MA_SUPPORT_OSS /* Only support OSS on specific platforms with known support. */ #define MA_SUPPORT_OSS /* Only support OSS on specific platforms with known support. */
#endif #endif
#endif #endif
#if defined(MA_ANDROID)
#define MA_SUPPORT_AAUDIO
#define MA_SUPPORT_OPENSL
#endif
#if defined(MA_APPLE) #if defined(MA_APPLE)
#define MA_SUPPORT_COREAUDIO #define MA_SUPPORT_COREAUDIO
#endif #endif