aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-17 15:38:39 -0700
committerChris Robinson <[email protected]>2016-07-17 15:38:39 -0700
commitdc8bbca7f1c6d11c4304f9c6e0977f4402593729 (patch)
treea8ecaf8cd9db60f1b18eaa30964d7516059f082b /Alc/panning.c
parent84ca38ba957d90b6b864cd50cc313e4a7fe1386c (diff)
Constify and use the correct size for an array
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 619b89c6..7d16afe2 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -694,7 +694,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
}
else
{
- static int map[MAX_AMBI_COEFFS] = { 0, 1, 3, 4, 8, 9, 15 };
+ static const int map[MAX_AMBI2D_COEFFS] = { 0, 1, 3, 4, 8, 9, 15 };
count = (conf->ChanMask > 0x1ff) ? 7 :
(conf->ChanMask > 0xf) ? 5 : 3;