mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Don't use OSS with Emscripten.
This commit is contained in:
@@ -195,6 +195,9 @@ extern "C" {
|
|||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
#define MAL_ANDROID
|
#define MAL_ANDROID
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
#define MAL_EMSCRIPTEN
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Some backends are only supported on certain platforms.
|
// Some backends are only supported on certain platforms.
|
||||||
@@ -226,7 +229,7 @@ extern "C" {
|
|||||||
#if defined(MAL_ANDROID)
|
#if defined(MAL_ANDROID)
|
||||||
#define MAL_SUPPORT_OPENSL
|
#define MAL_SUPPORT_OPENSL
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MAL_LINUX) && !defined(MAL_APPLE) && !defined(MAL_ANDROID)
|
#if !defined(MAL_LINUX) && !defined(MAL_APPLE) && !defined(MAL_ANDROID) && !defined(MAL_EMSCRIPTEN)
|
||||||
#define MAL_SUPPORT_OSS
|
#define MAL_SUPPORT_OSS
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user