aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-21 00:54:37 -0700
committerChris Robinson <[email protected]>2014-03-21 01:23:01 -0700
commitff63188cc2eb307eb874350e5281733d9c50f258 (patch)
treec422ded3a9125811f5658fb279aef96245c78268 /OpenAL32/Include
parente6e3937fa9d1d192bc26b900438b45c0e6eb5be2 (diff)
Add a generic vector interface and use it for the active effect slots
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index a00f2d4c..0f4a3c7e 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -22,6 +22,7 @@
#include "atomic.h"
#include "uintmap.h"
+#include "vector.h"
#ifndef ALC_SOFT_HRTF
#define ALC_SOFT_HRTF 1
@@ -722,6 +723,10 @@ struct ALCdevice_struct
#define MIXER_THREAD_NAME "alsoft-mixer"
+typedef struct ALeffectslot *ALeffectslotPtr;
+DECL_VECTOR(ALeffectslotPtr)
+
+
struct ALCcontext_struct
{
volatile RefCount ref;
@@ -747,9 +752,7 @@ struct ALCcontext_struct
ALsizei ActiveSourceCount;
ALsizei MaxActiveSources;
- struct ALeffectslot **ActiveEffectSlots;
- ALsizei ActiveEffectSlotCount;
- ALsizei MaxActiveEffectSlots;
+ vector_ALeffectslotPtr ActiveAuxSlots;
ALCdevice *Device;
const ALCchar *ExtensionList;