diff options
author | Chris Robinson <[email protected]> | 2009-10-09 01:06:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-10-09 01:06:33 -0700 |
commit | c7c4cf221a9933d385646ed12fd4b1d611632502 (patch) | |
tree | dcb706901304c0c395a0cdc04b9a653c9c63b0f6 | |
parent | d6e439244ae00a1750f0dc8b249f47efb4967a23 (diff) |
Make the dry buffer part of the device
-rw-r--r-- | Alc/ALu.c | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -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; |