summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-01 12:44:56 -0700
committerChris Robinson <[email protected]>2010-11-01 12:44:56 -0700
commit65a8d9278d600e108c39cecda6f54a38fc656efa (patch)
tree5a430a80cc5d5e9f5882e207099e15f01100937b /Alc
parent887c830d5669a073abe891d93bb2bd6d9509f8f5 (diff)
Declare a variable where it's used
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index b709be9c..e5b48337 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -751,7 +751,6 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
ALeffectslot *ALEffectSlot;
ALCcontext **ctx, **ctx_end;
ALsource **src, **src_end;
- ALfloat samp;
int fpuState;
ALuint i, j, c;
ALsizei e;
@@ -860,7 +859,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
{ \
for(j = 0;j < N;j++) \
{ \
- samp = 0.0f; \
+ ALfloat samp = 0.0f; \
for(c = 0;c < OUTPUTCHANNELS;c++) \
samp += DryBuffer[i][c] * Matrix[c][chans[j]]; \
((T*)buffer)[ChanMap[chans[j]]] = func(samp); \