aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-06-03 19:35:08 -0700
committerChris Robinson <[email protected]>2010-06-03 19:35:08 -0700
commit43dadcd9e437968f2913f7f066e0516eee4cbde0 (patch)
tree3d090ceb96e36c2ed565004c3a685b4877dd9ae2 /OpenAL32/Include/alMain.h
parent90db244b5f0c25ef1c24639210bbadd3be6ef81a (diff)
Use a UIntMap for the Databuffers
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 439c0e3f..afc94da2 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -367,9 +367,8 @@ struct ALCdevice_struct
// Map of Filters for this device
UIntMap FilterMap;
- // Linked List of Databuffers for this device
- struct ALdatabuffer *DatabufferList;
- ALuint DatabufferCount;
+ // Map of Databuffers for this device
+ UIntMap DatabufferMap;
// Stereo-to-binaural filter
struct bs2b *Bs2b;
@@ -480,14 +479,6 @@ void al_print(const char *fname, unsigned int line, const char *fmt, ...)
PRINTF_STYLE(3,4);
#define AL_PRINT(...) al_print(__FILE__, __LINE__, __VA_ARGS__)
-#define DECL_VERIFIER(name, type, field) \
-static type* Verify##name(type *list, ALuint id) \
-{ \
- while(list && list->field != id) \
- list = list->next; \
- return list; \
-}
-
#ifdef __cplusplus
}
#endif