diff --git a/AUTHORS b/AUTHORS index 032baeea31fbe..212c0616aa464 100644 --- a/AUTHORS +++ b/AUTHORS @@ -438,3 +438,4 @@ a license to everyone to use it as detailed in LICENSE.) * Christian Boos <cboos@bct-technology.com> * Erik Scholz <greenNO@SPAMg-s.xyz> * Gergely Nagy <ngg@tresorit.com> +* Tim Daubenschütz <tim.daubenschuetz@gmail.com> diff --git a/system/include/AL/al.h b/system/include/AL/al.h index 994bbed4496f6..4db043c5ee4fa 100644 --- a/system/include/AL/al.h +++ b/system/include/AL/al.h @@ -26,6 +26,10 @@ extern "C" { #define AL_FORMAT_MONO8 0x1100 #define AL_FORMAT_STEREO16 0x1103 #define AL_FORMAT_STEREO8 0x1102 +#ifdef __EMSCRIPTEN__ +#define AL_FORMAT_MONO_FLOAT32 0x10010 +#define AL_FORMAT_STEREO_FLOAT32 0x10011 +#endif #define AL_FREQUENCY 0x2001 #define AL_GAIN 0x100A #define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION diff --git a/tests/openal_capture.c b/tests/openal_capture.c index 05c5a70f141e3..09acff2517b6a 100644 --- a/tests/openal_capture.c +++ b/tests/openal_capture.c @@ -24,10 +24,6 @@ #endif #include <AL/al.h> #include <AL/alc.h> -#ifdef ASSUME_AL_FLOAT32 -#define AL_FORMAT_MONO_FLOAT32 0x10010 -#define AL_FORMAT_STEREO_FLOAT32 0x10011 -#endif static const char* alformat_string(ALenum format) { switch(format) { diff --git a/tests/openal_capture_sanity.c b/tests/openal_capture_sanity.c index 215b4533f2ec8..331a00b425fed 100644 --- a/tests/openal_capture_sanity.c +++ b/tests/openal_capture_sanity.c @@ -28,13 +28,6 @@ #include <AL/al.h> #include <AL/alc.h> -#ifdef ASSUME_AL_FLOAT32 -// We, in particular, are expected to support this, since -// this is the data type used by Web Audio. -#define AL_FORMAT_MONO_FLOAT32 0x10010 -#define AL_FORMAT_STEREO_FLOAT32 0x10011 -#endif - #define countof(x) (sizeof(x)/sizeof((x)[0])) static int result = EXIT_SUCCESS;