diff options
author | Chris Robinson <[email protected]> | 2012-10-25 15:36:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-25 15:37:52 -0700 |
commit | 252fc40f78fd51aef88994f8566f36148d3215c9 (patch) | |
tree | 1ba6cd6e73ab7cd4215f97be67b9aa10fd127828 | |
parent | fb21a73b4eb11868cfb35db717b236dfc8319c64 (diff) |
Fix some types
-rw-r--r-- | utils/makehrtf.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c index f6b16889..d3917d5d 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -1273,8 +1273,8 @@ static int ReadWaveData (FILE * fp, const SourceRefT * src, const ByteOrderT ord // Read the RIFF/RIFX WAVE list or data chunk, converting all elements to // doubles. static int ReadWaveList (FILE * fp, const SourceRefT * src, const ByteOrderT order, const size_t n, double * hrir) { - uint4 fourCC, chunkSize, listSize; - size_t block, skip, count, offset, i; + uint4 fourCC, chunkSize, listSize, count; + size_t block, skip, offset, i; double lastSample; for (;;) { @@ -1605,7 +1605,8 @@ static void ReconstructHrirs (const HrirDataT * hData) { * HRIRs that bound the coordinate along with a factor for calculating the * continous HRIR using interpolation. */ -static void CalcAzIndices (const HrirDataT * hData, const uint ei, const double az, uint * j0, uint * j1, double * jf) { +static void CalcAzIndices(const HrirDataT *hData, const uint ei, const double az, size_t *j0, size_t *j1, double *jf) +{ double af; uint ai; @@ -1819,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", hData -> mIrCount * n); + "static const ALshort defaultCoeffs[%zu] =\n{\n", hData -> mIrCount * n); if (! WriteAscii (text, fp, filename)) return (0); srand (0x31DF840C); @@ -1852,7 +1853,7 @@ static int StoreTable (const HrirDataT * hData, const char * filename) { "/* Default HRTF Definition */\n", fp, filename)) return (0); snprintf (text, 128, "static const struct Hrtf DefaultHrtf = {\n" - " %u, %u, %u, defaultAzCount, defaultEvOffset,\n", + " %u, %zu, %u, defaultAzCount, defaultEvOffset,\n", hData -> mIrRate, hData -> mIrPoints, hData -> mEvCount); if (! WriteAscii (text, fp, filename)) return (0); |