diff options
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/audio.h | 6 | ||||
-rw-r--r-- | src/audio/buffers.h | 9 | ||||
-rw-r--r-- | src/audio/sources.h | 9 |
3 files changed, 22 insertions, 2 deletions
diff --git a/src/audio/audio.h b/src/audio/audio.h index 930edaf..2849013 100644 --- a/src/audio/audio.h +++ b/src/audio/audio.h @@ -8,13 +8,19 @@ #define __INCLUDED_AUDIO_AUDIO_H__ #include <iostream> +#include "sys/sys.h" #ifdef _WIN32 #include <windows.h> #endif +#ifdef _OSX +#include "OpenAL/al.h" +#include "OpenAL/alc.h" +#else #include "AL/al.h" #include "AL/alc.h" +#endif #include "math/vector3f.h" #include "math/axis.h" diff --git a/src/audio/buffers.h b/src/audio/buffers.h index cc7a6c8..2b31089 100644 --- a/src/audio/buffers.h +++ b/src/audio/buffers.h @@ -7,8 +7,15 @@ #ifndef __INCLUDED_AUDIO_BUFFERS_H__ #define __INCLUDED_AUDIO_BUFFERS_H__ -#include "AL/al.h" +#include "sys/sys.h" + +#ifdef _OSX +#include "OpenAL/al.h" +#include "OpenAL/alc.h" +#else +#include "AL/al.h" #include "AL/alc.h" +#endif #include <string> #include <map> diff --git a/src/audio/sources.h b/src/audio/sources.h index 078c424..c9e38e2 100644 --- a/src/audio/sources.h +++ b/src/audio/sources.h @@ -7,8 +7,15 @@ #ifndef __INCLUDED_AUDIO_SOURCES_H__ #define __INCLUDED_AUDIO_SOURCES_H__ -#include "AL/al.h" +#include "sys/sys.h" + +#ifdef _OSX +#include "OpenAL/al.h" +#include "OpenAL/alc.h" +#else +#include "AL/al.h" #include "AL/alc.h" +#endif #include <string> #include <map> |