aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-10-09 01:06:33 -0700
committerChris Robinson <[email protected]>2009-10-09 01:06:33 -0700
commitc7c4cf221a9933d385646ed12fd4b1d611632502 (patch)
treedcb706901304c0c395a0cdc04b9a653c9c63b0f6
parentd6e439244ae00a1750f0dc8b249f47efb4967a23 (diff)
Make the dry buffer part of the device
-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;