Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-02-23 19:36:46 +0000
committerStijn Buys <ingar@osirion.org>2009-02-23 19:36:46 +0000
commit22052f28695172a7c790f37aa827040c3bb2ec39 (patch)
tree18cce5e928f07dd279adddb73f156cb552238221 /src/audio
parenta6ff04f9d1c598358d509dbee71437a139579ce0 (diff)
native Framework support on Mac OS X
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio.h6
-rw-r--r--src/audio/buffers.h9
-rw-r--r--src/audio/sources.h9
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>