diff options
author | Chris Robinson <[email protected]> | 2010-11-01 12:44:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-01 12:44:56 -0700 |
commit | 65a8d9278d600e108c39cecda6f54a38fc656efa (patch) | |
tree | 5a430a80cc5d5e9f5882e207099e15f01100937b /Alc | |
parent | 887c830d5669a073abe891d93bb2bd6d9509f8f5 (diff) |
Declare a variable where it's used
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer.c | 3 |
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); \ |