diff options
| author | raysan5 <[email protected]> | 2017-02-11 23:34:41 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-02-11 23:34:41 +0100 |
| commit | 05f039f85fb43f9ae4598747a4d9c6770ec5774b (patch) | |
| tree | 6f8254252476652dfa9f3022c25873ec700f30c6 /src/audio.c | |
| parent | afcd748fdf2d4f379f7a3be1706c1d6cd2ff504d (diff) | |
| download | raylib-05f039f85fb43f9ae4598747a4d9c6770ec5774b.tar.gz raylib-05f039f85fb43f9ae4598747a4d9c6770ec5774b.zip | |
Corrected issue with OpenAL being 'keg only' on OSX
Also reviewed issue with stdbool when compiling with clang
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/audio.c b/src/audio.c index eb5e65d6..58699035 100644 --- a/src/audio.c +++ b/src/audio.c @@ -59,9 +59,14 @@ #include "utils.h" // Required for: fopen() Android mapping, TraceLog() #endif -#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 header, required for AL_EXT_FLOAT32 and AL_EXT_MCFORMATS +#ifdef __APPLE__ + #include "OpenAL/al.h" // OpenAL basic header + #include "OpenAL/alc.h" // OpenAL context header (like OpenGL, OpenAL requires a context to work) +#else + #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 header, required for AL_EXT_FLOAT32 and AL_EXT_MCFORMATS +#endif // OpenAL extension: AL_EXT_FLOAT32 - Support for 32bit float samples // OpenAL extension: AL_EXT_MCFORMATS - Support for multi-channel formats (Quad, 5.1, 6.1, 7.1) @@ -1252,4 +1257,4 @@ void TraceLog(int msgType, const char *text, ...) if (msgType == ERROR) exit(1); // If ERROR message, exit program } -#endif
\ No newline at end of file +#endif |
