From 55e13a884f69ab2af014e06f9fdff23656f5d53e Mon Sep 17 00:00:00 2001 From: tjw Date: Thu, 3 Aug 2006 03:15:24 +0000 Subject: 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 --- code/client/snd_openal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'code/client/snd_openal.c') 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; -- cgit v1.2.3