From 0bffb8a8cdcf186182026e29ece55a476f413fea Mon Sep 17 00:00:00 2001
From: "Tony J. White =" <tjw@tjw.org>
Date: Thu, 3 Aug 2006 03:15:24 +0000
Subject: [PATCH] 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

---
 code/client/snd_openal.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index ad1baa5c..d4ad7f48 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;