From 88b0c301529659505ee70fef8245fb30ebecd42a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 11 Sep 2012 10:43:53 -0700 Subject: [PATCH] Use the correct size for defaultCoeffs --- Alc/hrtf_tables.inc | 2 +- utils/makehrtf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/hrtf_tables.inc b/Alc/hrtf_tables.inc index 19e4c458..dbfa117b 100644 --- a/Alc/hrtf_tables.inc +++ b/Alc/hrtf_tables.inc @@ -3,7 +3,7 @@ static const ALubyte defaultAzCount[19] = { 1, 12, 24, 36, 45, 56, 60, 72, 72, 7 static const ALushort defaultEvOffset[19] = { 0, 1, 13, 37, 73, 118, 174, 234, 306, 378, 450, 522, 594, 654, 710, 755, 791, 815, 827, }; /* HRIR Coefficients */ -static const ALshort defaultCoeffs[848700] = +static const ALshort defaultCoeffs[26496] = { +6245, +8418, +3440, +2877, +1077, +321, +880, -856, -2486, -1290, +621, -142, -628, -1106, -998, -404, -239, -201, -81, -135, -380, -198, -420, -329, -410, -617, -487, -329, -204, -95, -4, -149, +7068, +8719, +2927, +3268, +1110, +3, +858, -795, -2531, -1655, +570, +83, -609, -924, -969, -915, -357, -74, -200, -216, -480, -309, -445, -371, -399, -558, -515, -245, -99, -75, -3, -178, diff --git a/utils/makehrtf.c b/utils/makehrtf.c index 65ca4bc1..5a3f7d1b 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -1820,7 +1820,7 @@ static int StoreTable (const HrirDataT * hData, const char * filename) { n = hData -> mIrPoints; snprintf (text, 128, "};\n\n" "/* HRIR Coefficients */\n" - "static const ALshort defaultCoeffs[%u] =\n{\n", end); + "static const ALshort defaultCoeffs[%u] =\n{\n", hData -> mIrCount * n); if (! WriteAscii (text, fp, filename)) return (0); srand (0x31DF840C); -- 2.11.4.GIT