summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-30 20:33:47 -0700
committerChris Robinson <[email protected]>2011-08-30 20:33:47 -0700
commit0a1321aaaee411393c27c9b4836e4190f3b7e421 (patch)
treeb2233a9364da4474c2890e43a1f0657f62446984 /OpenAL32/Include/alMain.h
parent189add1d5a5b1f9f55fba63937f3d92cddc0cea2 (diff)
Add a limit to the UIntMap size and use it for sources and effect slots
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index fe9d3331..c712a38b 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -334,11 +334,12 @@ typedef struct UIntMap {
} *array;
ALsizei size;
ALsizei maxsize;
+ ALsizei limit;
RWLock lock;
} UIntMap;
extern UIntMap TlsDestructor;
-void InitUIntMap(UIntMap *map);
+void InitUIntMap(UIntMap *map, ALsizei limit);
void ResetUIntMap(UIntMap *map);
ALenum InsertUIntMapEntry(UIntMap *map, ALuint key, ALvoid *value);
void RemoveUIntMapKey(UIntMap *map, ALuint key);