From e9d5e53dbe46c3dda6f663bbfbc276b99545df17 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 23 Sep 2010 17:44:02 -0700 Subject: [PATCH] Use ALfloat for the dry mix buffer --- Alc/mixer.c | 6 +++--- OpenAL32/Include/alMain.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Alc/mixer.c b/Alc/mixer.c index 3b550ff6..ecb60aad 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -390,10 +390,10 @@ static __inline ALfloat cos_lerp16(ALfloat val1, ALfloat val2, ALint frac) static void MixSource(ALsource *Source, ALCcontext *Context, - float (*DryBuffer)[OUTPUTCHANNELS], ALuint SamplesToDo, + ALfloat (*DryBuffer)[OUTPUTCHANNELS], ALuint SamplesToDo, ALfloat *ClickRemoval, ALfloat *PendingClicks) { - static float DummyBuffer[BUFFERSIZE]; + static ALfloat DummyBuffer[BUFFERSIZE]; static ALfloat DummyClickRemoval[OUTPUTCHANNELS]; ALfloat *WetBuffer[MAX_SENDS]; ALfloat DrySend[OUTPUTCHANNELS]; @@ -581,7 +581,7 @@ static void MixSource(ALsource *Source, ALCcontext *Context, ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { - float (*DryBuffer)[OUTPUTCHANNELS]; + ALfloat (*DryBuffer)[OUTPUTCHANNELS]; ALfloat (*Matrix)[OUTPUTCHANNELS]; ALfloat *ClickRemoval; const ALuint *ChanMap; diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e5193f70..80d25e52 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -399,7 +399,7 @@ struct ALCdevice_struct ALboolean DuplicateStereo; // Dry path buffer mix - float DryBuffer[BUFFERSIZE][OUTPUTCHANNELS]; + ALfloat DryBuffer[BUFFERSIZE][OUTPUTCHANNELS]; ALuint DevChannels[OUTPUTCHANNELS]; -- 2.11.4.GIT