summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c5
-rw-r--r--OpenAL32/Include/alSource.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index c3dd083e..aba408f4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <memory.h>
#include "alMain.h"
+#include "alSource.h"
#include "AL/al.h"
#include "AL/alc.h"
@@ -696,7 +697,7 @@ ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsize
if(!size)
SetALCError(ALC_INVALID_VALUE);
else
- *data = 0; /* FIXME: Should be 1 or more */
+ *data = MAX_SENDS;
break;
case ALC_ATTRIBUTES_SIZE:
@@ -736,7 +737,7 @@ ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsize
data[i++] = device->Context->lNumStereoSources;
data[i++] = ALC_MAX_AUXILIARY_SENDS;
- data[i++] = 0; /* FIXME */
+ data[i++] = MAX_SENDS;
}
ProcessContext(NULL);
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 5737bad9..df8fb44d 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -3,6 +3,9 @@
#define AL_NUM_SOURCE_PARAMS 128
+/* This cannot be changed without working on the code! */
+#define MAX_SENDS 1
+
#include "alFilter.h"
#include "alAuxEffectSlot.h"
#include "AL/al.h"
@@ -66,7 +69,7 @@ typedef struct ALsource_struct
struct {
ALeffectslot Slot;
ALfilter WetFilter;
- } Send[1];
+ } Send[MAX_SENDS];
ALfloat LastDrySample;
ALfloat LastWetSample;