aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-01-16 09:04:58 -0800
committerChris Robinson <[email protected]>2017-01-16 09:04:58 -0800
commitf1f93a593a62b1a06f900d809628b5678eab4d8b (patch)
treec435e9a6382df89cd50aa01348bcbfe816f40cec
parent959812ee13e4869309e3c2cf507f6b0458ad8618 (diff)
Fix a couple hard-coded array sizes
-rw-r--r--Alc/hrtf.c4
1 files 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;