aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/sample_cvt.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-08 22:48:36 -0800
committerChris Robinson <[email protected]>2014-03-08 22:48:36 -0800
commitcde2f825d5e6275d66eacab4f000d65067c86ad6 (patch)
tree923c4d483ad524a160f063e1c61e94f976801a80 /OpenAL32/sample_cvt.c
parent14a04020ff6aa9c5314b2695583029fce5f04a1c (diff)
Use the correct array size
Diffstat (limited to 'OpenAL32/sample_cvt.c')
-rw-r--r--OpenAL32/sample_cvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/sample_cvt.c b/OpenAL32/sample_cvt.c
index a276d454..a4c59d9d 100644
--- a/OpenAL32/sample_cvt.c
+++ b/OpenAL32/sample_cvt.c
@@ -1069,7 +1069,7 @@ DECL_TEMPLATE(ALubyte3)
static void Convert_ALmsadpcm_##T(ALmsadpcm *dst, const T *src, \
ALuint numchans, ALuint len, ALuint align) \
{ \
- ALint sample[MaxChannels] = {0,0,0,0,0,0,0,0}; \
+ ALint sample[MAX_INPUT_CHANNELS] = {0,0,0,0,0,0,0,0}; \
ALsizei byte_align = ((align-2)/2 + 7) * numchans; \
ALuint i, j, k; \
ALshort *tmp; \
@@ -1092,7 +1092,7 @@ DECL_TEMPLATE(ALubyte)
static void Convert_ALmsadpcm_ALshort(ALmsadpcm *dst, const ALshort *src,
ALuint numchans, ALuint len, ALuint align)
{
- ALint sample[MaxChannels] = {0,0,0,0,0,0,0,0};
+ ALint sample[MAX_INPUT_CHANNELS] = {0,0,0,0,0,0,0,0};
ALsizei byte_align = ((align-2)/2 + 7) * numchans;
ALuint i;