From f1f93a593a62b1a06f900d809628b5678eab4d8b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 16 Jan 2017 09:04:58 -0800 Subject: Fix a couple hard-coded array sizes --- Alc/hrtf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/hrtf.c b/Alc/hrtf.c index 05215628..3fbb2eb1 100644 --- a/Alc/hrtf.c +++ b/Alc/hrtf.c @@ -198,9 +198,9 @@ ALsizei BuildBFormatHrtf(const struct Hrtf *Hrtf, ALfloat (*coeffs)[HRIR_LENGTH] */ #define NUM_BANDS 2 BandSplitter splitter; - ALfloat temps[3][HRIR_LENGTH]; - ALsizei lidx[14], ridx[14]; + ALsizei lidx[HRTF_AMBI_CHAN_COUNT], ridx[HRTF_AMBI_CHAN_COUNT]; ALsizei min_delay = HRTF_HISTORY_LENGTH; + ALfloat temps[3][HRIR_LENGTH]; ALsizei max_length = 0; ALsizei i, j, c, b; -- cgit v1.2.3