diff options
author | Chris Robinson <[email protected]> | 2011-01-23 22:30:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-01-23 22:30:18 -0800 |
commit | 2b7324c06ee9bb2d555a26e5f4b4395f0d044ef3 (patch) | |
tree | bc15af6b72a1f6c7c06cbc0d5644f6181d1f6134 | |
parent | c95bd6cadf8f1b850a34e123eb4314dbe5993cbc (diff) |
Avoid using a variable for array sizes and const variable initialization
-rw-r--r-- | Alc/mixer.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; \ |