aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-04 20:35:32 -0700
committerChris Robinson <[email protected]>2016-07-04 20:35:32 -0700
commit8f4d6c48ce6621e2e2b79ada781b9e3dfc9ed38c (patch)
treef0e16e88cfaea9d89f019efa2637324060d0e0e4 /OpenAL32
parentf0cbcdc928b6a0615199dde56f3b7f0ac31cc6cb (diff)
Use separate arrays for UIntMap keys and values
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alAuxEffectSlot.c4
-rw-r--r--OpenAL32/alBuffer.c4
-rw-r--r--OpenAL32/alEffect.c4
-rw-r--r--OpenAL32/alFilter.c4
-rw-r--r--OpenAL32/alSource.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index b0fd3385..bbaf0668 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -660,8 +660,8 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context)
ALsizei pos;
for(pos = 0;pos < Context->EffectSlotMap.size;pos++)
{
- ALeffectslot *temp = Context->EffectSlotMap.array[pos].value;
- Context->EffectSlotMap.array[pos].value = NULL;
+ ALeffectslot *temp = Context->EffectSlotMap.values[pos];
+ Context->EffectSlotMap.values[pos] = NULL;
DeinitEffectSlot(temp);
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 193ab44f..c52924a9 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -1402,8 +1402,8 @@ ALvoid ReleaseALBuffers(ALCdevice *device)
ALsizei i;
for(i = 0;i < device->BufferMap.size;i++)
{
- ALbuffer *temp = device->BufferMap.array[i].value;
- device->BufferMap.array[i].value = NULL;
+ ALbuffer *temp = device->BufferMap.values[i];
+ device->BufferMap.values[i] = NULL;
al_free(temp->data);
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 5a036091..1057f3c1 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -375,8 +375,8 @@ ALvoid ReleaseALEffects(ALCdevice *device)
ALsizei i;
for(i = 0;i < device->EffectMap.size;i++)
{
- ALeffect *temp = device->EffectMap.array[i].value;
- device->EffectMap.array[i].value = NULL;
+ ALeffect *temp = device->EffectMap.values[i];
+ device->EffectMap.values[i] = NULL;
// Release effect structure
FreeThunkEntry(temp->id);
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 7be3e339..7b96263a 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -636,8 +636,8 @@ ALvoid ReleaseALFilters(ALCdevice *device)
ALsizei i;
for(i = 0;i < device->FilterMap.size;i++)
{
- ALfilter *temp = device->FilterMap.array[i].value;
- device->FilterMap.array[i].value = NULL;
+ ALfilter *temp = device->FilterMap.values[i];
+ device->FilterMap.values[i] = NULL;
// Release filter structure
FreeThunkEntry(temp->id);
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index e79f0fc3..7d34f368 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -3373,8 +3373,8 @@ ALvoid ReleaseALSources(ALCcontext *Context)
ALsizei pos;
for(pos = 0;pos < Context->SourceMap.size;pos++)
{
- ALsource *temp = Context->SourceMap.array[pos].value;
- Context->SourceMap.array[pos].value = NULL;
+ ALsource *temp = Context->SourceMap.values[pos];
+ Context->SourceMap.values[pos] = NULL;
DeinitSource(temp);