diff options
author | Chris Robinson <[email protected]> | 2012-09-11 10:43:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-11 10:43:53 -0700 |
commit | 88b0c301529659505ee70fef8245fb30ebecd42a (patch) | |
tree | 8c5022f79f2d44acb208077f56d0e9da50823c1e | |
parent | 01183ad93bbc65c090062c17fa7f4f3e0be05e0a (diff) |
Use the correct size for defaultCoeffs
-rw-r--r-- | Alc/hrtf_tables.inc | 2 | ||||
-rw-r--r-- | 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); |