aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALu.c3
-rw-r--r--OpenAL32/Include/alMain.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index c5d25346..04562b54 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1196,7 +1196,7 @@ another_source:
ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
{
- static float DryBuffer[BUFFERSIZE][OUTPUTCHANNELS];
+ float (*DryBuffer)[OUTPUTCHANNELS];
ALuint SamplesToDo;
ALeffectslot *ALEffectSlot;
ALCcontext *ALContext;
@@ -1215,6 +1215,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
(void)fpuState;
#endif
+ DryBuffer = device->DryBuffer;
while(size > 0)
{
/* Setup variables */
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index b02f9f83..861019ef 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -244,6 +244,9 @@ struct ALCdevice_struct
struct bs2b *Bs2b;
ALCint Bs2bLevel;
+ // Dry path buffer mix
+ float DryBuffer[BUFFERSIZE][OUTPUTCHANNELS];
+
// Context created on this device
ALCcontext *Context;