diff options
author | Chris Robinson <[email protected]> | 2013-05-26 17:10:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-26 17:10:57 -0700 |
commit | 06c8442af67fcb38241d2f13a649fc8d4dedaa85 (patch) | |
tree | 7d2d203ebbf8a489de4a0405faac36f59ef732d0 /Alc | |
parent | 0a4be3470e5cd48c95bef5a30a169ea671646132 (diff) |
Rename a variable
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/equalizer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index f9744fb9..1264e93c 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -240,23 +240,23 @@ static ALvoid ALequalizerState_Process(ALequalizerState *state, ALuint SamplesTo for(it = 0;it < td;it++) { ALfloat smp = SamplesIn[base+it]; - ALfloat tempsmp; for(ft = 0;ft < 4;ft++) { ALEQFilter *filter = &state->bandfilter[ft]; + ALfloat outsmp; - tempsmp = filter->b[0] * smp + - filter->b[1] * filter->x[0] + - filter->b[2] * filter->x[1] - - filter->a[1] * filter->y[0] - - filter->a[2] * filter->y[1]; + outsmp = filter->b[0] * smp + + filter->b[1] * filter->x[0] + + filter->b[2] * filter->x[1] - + filter->a[1] * filter->y[0] - + filter->a[2] * filter->y[1]; filter->x[1] = filter->x[0]; filter->x[0] = smp; filter->y[1] = filter->y[0]; - filter->y[0] = tempsmp; - smp = tempsmp; + filter->y[0] = outsmp; + smp = outsmp; } temps[it] = smp; |