From 8bf4a22876c30c16db71cd9063b9788c5e6a1aa8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Aug 2016 00:25:28 -0700 Subject: Combine related members into a struct --- OpenAL32/Include/alMain.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index b173c515..56bfa0b0 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -593,16 +593,18 @@ struct ALCdevice_struct UIntMap FilterMap; /* HRTF filter tables */ - vector_HrtfEntry Hrtf_List; - al_string Hrtf_Name; - const struct Hrtf *Hrtf; - ALCenum Hrtf_Status; - - /* HRTF filter state for dry buffer content */ - alignas(16) ALfloat Hrtf_Values[4][HRIR_LENGTH][2]; - alignas(16) ALfloat Hrtf_Coeffs[4][HRIR_LENGTH][2]; - ALuint Hrtf_Offset; - ALuint Hrtf_IrSize; + struct { + vector_HrtfEntry List; + al_string Name; + ALCenum Status; + const struct Hrtf *Handle; + + /* HRTF filter state for dry buffer content */ + alignas(16) ALfloat Values[4][HRIR_LENGTH][2]; + alignas(16) ALfloat Coeffs[4][HRIR_LENGTH][2]; + ALuint Offset; + ALuint IrSize; + } Hrtf; /* UHJ encoder state */ struct Uhj2Encoder *Uhj_Encoder; -- cgit v1.2.3