mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Disable SDL on Emscripten to avoid compiler errors.
This commit is contained in:
@@ -1205,10 +1205,9 @@ void mal_interleave_pcm_frames(mal_format format, mal_uint32 channels, mal_uint6
|
||||
#define MAL_SUPPORT_WEBAUDIO
|
||||
#endif
|
||||
|
||||
#define MAL_SUPPORT_SDL // All platforms support SDL.
|
||||
|
||||
// Explicitly disable OpenAL and Null backends for Emscripten because they both use a background thread which is not properly supported right now.
|
||||
#if !defined(MAL_EMSCRIPTEN)
|
||||
#define MAL_SUPPORT_SDL
|
||||
#define MAL_SUPPORT_OPENAL
|
||||
#define MAL_SUPPORT_NULL
|
||||
#endif
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "../extras/stb_vorbis.c"
|
||||
#endif
|
||||
|
||||
#define MAL_NO_SDL
|
||||
#define MINI_AL_IMPLEMENTATION
|
||||
#include "../mini_al.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user