diff --git a/src/audio.c b/src/audio.c index 958b9838..e06994b8 100644 --- a/src/audio.c +++ b/src/audio.c @@ -37,12 +37,18 @@ #include "AL/al.h" // OpenAL basic header #include "AL/alc.h" // OpenAL context header (like OpenGL, OpenAL requires a context to work) -#include "AL/alext.h" // OpenAL extensions for other format types #include // Required for: malloc(), free() #include // Required for: strcmp(), strncmp() #include // Required for: FILE, fopen(), fclose(), fread() +#ifndef AL_FORMAT_MONO_FLOAT32 + #define AL_FORMAT_MONO_FLOAT32 0x10010 +#endif +#ifndef AL_FORMAT_STEREO_FLOAT32 + #define AL_FORMAT_STEREO_FLOAT32 0x10011 +#endif + #if defined(AUDIO_STANDALONE) #include // Required for: va_list, va_start(), vfprintf(), va_end() #else