From a9d9553fff7f3ec571770a9b4a22c5a46f91780f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 21 May 2011 17:45:54 -0700 Subject: Use a multi-dimensional array for the panning LUT --- Alc/alcDedicated.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/alcDedicated.c') diff --git a/Alc/alcDedicated.c b/Alc/alcDedicated.c index 0b9d8419..6bab83e5 100644 --- a/Alc/alcDedicated.c +++ b/Alc/alcDedicated.c @@ -59,7 +59,7 @@ static ALvoid DedicatedDLGUpdate(ALeffectState *effect, ALCcontext *Context, con ALsizei s; pos = aluCart2LUTpos(1.0f, 0.0f); - SpeakerGain = &device->PanningLUT[MAXCHANNELS * pos]; + SpeakerGain = device->PanningLUT[pos]; for(s = 0;s < MAXCHANNELS;s++) state->gains[s] = SpeakerGain[s] * Effect->Params.Dedicated.Gain; -- cgit v1.2.3