diff options
author | Chris Robinson <[email protected]> | 2011-05-21 17:45:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-21 17:45:54 -0700 |
commit | a9d9553fff7f3ec571770a9b4a22c5a46f91780f (patch) | |
tree | 7b6e545b9dd1f5544975936cef8daf014af7656d /Alc/alcReverb.c | |
parent | 5cdf774ea7d8ad8e9a6316401e39647040761a3a (diff) |
Use a multi-dimensional array for the panning LUT
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r-- | Alc/alcReverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index 4ecf615e..20638710 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -627,7 +627,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection * panning direction. */ pos = aluCart2LUTpos(earlyPan[2], earlyPan[0]); - speakerGain = &Device->PanningLUT[MAXCHANNELS * pos]; + speakerGain = Device->PanningLUT[pos]; dirGain = aluSqrt((earlyPan[0] * earlyPan[0]) + (earlyPan[2] * earlyPan[2])); for(index = 0;index < MAXCHANNELS;index++) @@ -640,7 +640,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection pos = aluCart2LUTpos(latePan[2], latePan[0]); - speakerGain = &Device->PanningLUT[MAXCHANNELS * pos]; + speakerGain = Device->PanningLUT[pos]; dirGain = aluSqrt((latePan[0] * latePan[0]) + (latePan[2] * latePan[2])); for(index = 0;index < MAXCHANNELS;index++) |