aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-03 03:15:24 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-03 03:15:24 +0000
commit55e13a884f69ab2af014e06f9fdff23656f5d53e (patch)
treeb1d8054a85e0c7c766dfcdf833fb78664d39b334
parentcb3275a714bd6cfc492097353b8a56bcea21338c (diff)
downloadioquake3-aero-55e13a884f69ab2af014e06f9fdff23656f5d53e.tar.gz
ioquake3-aero-55e13a884f69ab2af014e06f9fdff23656f5d53e.zip
bug 2747
* it turns out Apple's OpenAL only allows for 64 alSource's by default http://opensource.creative.com/pipermail/openal/2005-October/008893.html This was the main cause of the Mac OS X OpenAL probem since we were using 128 as MAX_SRC git-svn-id: svn://svn.icculus.org/quake3/trunk@833 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/client/snd_openal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index ad1baa5..d4ad7f4 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -465,7 +465,11 @@ typedef struct src_s
qboolean local; // Is this local (relative to the cam)
} src_t;
-#define MAX_SRC 128
+#ifdef MACOS_X
+ #define MAX_SRC 64
+#else
+ #define MAX_SRC 128
+#endif
static src_t srcList[MAX_SRC];
static int srcCount = 0;
static qboolean alSourcesInitialised = qfalse;