aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-31 02:15:24 -0700
committerChris Robinson <[email protected]>2017-03-31 02:15:24 -0700
commit7dc3fb98abad1876410b2913e7ae2b344e08f6ba (patch)
tree461b0703583ae6f7ce0f026c676d6c6c7310d289 /Alc/hrtf.c
parentc68dac879c7f9f6e76d86eb9c95a1dd5a27fc565 (diff)
Use the correct types' sizes for HRTF storage
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 91895cb9..ab2708cb 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -389,11 +389,11 @@ static struct Hrtf *LoadHrtf00(const ALubyte *data, size_t datalen, const_al_str
if(!failed)
{
size_t total = sizeof(struct Hrtf);
- total += sizeof(azCount[0])*evCount;
+ total += sizeof(Hrtf->azCount[0])*evCount;
total = (total+1)&~1; /* Align for (u)short fields */
- total += sizeof(evOffset[0])*evCount;
- total += sizeof(coeffs[0])*irSize*irCount;
- total += sizeof(delays[0])*irCount;
+ total += sizeof(Hrtf->evOffset[0])*evCount;
+ total += sizeof(Hrtf->coeffs[0])*irSize*irCount;
+ total += sizeof(Hrtf->delays[0])*irCount;
total += al_string_length(filename)+1;
Hrtf = al_calloc(16, total);
@@ -570,11 +570,11 @@ static struct Hrtf *LoadHrtf01(const ALubyte *data, size_t datalen, const_al_str
if(!failed)
{
size_t total = sizeof(struct Hrtf);
- total += sizeof(azCount[0])*evCount;
+ total += sizeof(Hrtf->azCount[0])*evCount;
total = (total+1)&~1; /* Align for (u)short fields */
- total += sizeof(evOffset[0])*evCount;
- total += sizeof(coeffs[0])*irSize*irCount;
- total += sizeof(delays[0])*irCount;
+ total += sizeof(Hrtf->evOffset[0])*evCount;
+ total += sizeof(Hrtf->coeffs[0])*irSize*irCount;
+ total += sizeof(Hrtf->delays[0])*irCount;
total += al_string_length(filename)+1;
Hrtf = al_calloc(16, total);