From 98e8f941b773df0b591e7c6c6c0e3b5096a9b4f2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 11 Mar 2017 06:20:04 -0800 Subject: Allocate as many channels for DirectHrtfState as needed --- OpenAL32/Include/alMain.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index b2e1bfcf..04fb7239 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -624,10 +624,12 @@ typedef struct HrtfParams { typedef struct DirectHrtfState { /* HRTF filter state for dry buffer content */ - alignas(16) ALfloat Values[9][HRIR_LENGTH][2]; - alignas(16) ALfloat Coeffs[9][HRIR_LENGTH][2]; ALsizei Offset; ALsizei IrSize; + struct { + alignas(16) ALfloat Values[HRIR_LENGTH][2]; + alignas(16) ALfloat Coeffs[HRIR_LENGTH][2]; + } Chan[]; } DirectHrtfState; typedef struct HrtfEntry { -- cgit v1.2.3