From 2b7324c06ee9bb2d555a26e5f4b4395f0d044ef3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 23 Jan 2011 22:30:18 -0800 Subject: Avoid using a variable for array sizes and const variable initialization --- Alc/mixer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc') diff --git a/Alc/mixer.c b/Alc/mixer.c index af50c72e..e777dd15 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -192,17 +192,17 @@ DECL_TEMPLATE(ALubyte, cubic8) #undef DECL_TEMPLATE -#define DECL_TEMPLATE(T, count, sampler) \ -static void Mix_##T##_##count##_##sampler(ALsource *Source, ALCdevice *Device,\ +#define DECL_TEMPLATE(T, chnct, sampler) \ +static void Mix_##T##_##chnct##_##sampler(ALsource *Source, ALCdevice *Device,\ const T *data, ALuint *DataPosInt, ALuint *DataPosFrac, \ ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize) \ { \ - const ALuint Channels = count; \ - const ALfloat scaler = 1.0f/Channels; \ + const ALuint Channels = chnct; \ + const ALfloat scaler = 1.0f/chnct; \ ALfloat (*DryBuffer)[MAXCHANNELS]; \ ALfloat *ClickRemoval, *PendingClicks; \ ALuint pos, frac; \ - ALfloat DrySend[Channels][MAXCHANNELS]; \ + ALfloat DrySend[chnct][MAXCHANNELS]; \ FILTER *DryFilter; \ ALuint BufferIdx; \ ALuint increment; \ -- cgit v1.2.3