aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/converter.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/converter.c')
-rw-r--r--Alc/converter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/converter.c b/Alc/converter.c
index 99069d15..f1a3a96b 100644
--- a/Alc/converter.c
+++ b/Alc/converter.c
@@ -13,7 +13,7 @@ SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType
if(numchans <= 0 || srcRate <= 0 || dstRate <= 0)
return NULL;
- converter = al_calloc(16, offsetof(SampleConverter, Chan[numchans]));
+ converter = al_calloc(16, FAM_SIZE(SampleConverter, Chan, numchans));
converter->mSrcType = srcType;
converter->mDstType = dstType;
converter->mNumChannels = numchans;