From 9737f683150180a5531d276959030ffa0bd35492 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Aug 2012 10:42:48 -0700 Subject: [PATCH] Place the alignment attribute before the variable declaration --- Alc/mixer_inc.c | 2 +- OpenAL32/Include/alSource.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index 3e9d7f46..6ae00d3d 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -53,7 +53,7 @@ void MERGE4(MixDirect_Hrtf_,SAMPLER,_,SUFFIX)( ALfloat (*RESTRICT Values)[2] = Source->Hrtf.Values[i]; ALint Counter = maxu(Source->Hrtf.Counter, OutPos) - OutPos; ALuint Offset = Source->Hrtf.Offset + OutPos; - ALfloat Coeffs[HRIR_LENGTH][2] ALIGN(16); + ALIGN(16) ALfloat Coeffs[HRIR_LENGTH][2]; ALuint Delay[2]; ALfloat left, right; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index da3e8fab..0d9ac9f1 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -31,16 +31,16 @@ typedef struct ALbufferlistitem typedef struct HrtfState { ALboolean Moving; ALuint Counter; - ALfloat History[MaxChannels][SRC_HISTORY_LENGTH] ALIGN(16); - ALfloat Values[MaxChannels][HRIR_LENGTH][2] ALIGN(16); + ALIGN(16) ALfloat History[MaxChannels][SRC_HISTORY_LENGTH]; + ALIGN(16) ALfloat Values[MaxChannels][HRIR_LENGTH][2]; ALuint Offset; } HrtfState; typedef struct HrtfParams { ALfloat Gain; ALfloat Dir[3]; - ALfloat Coeffs[MaxChannels][HRIR_LENGTH][2] ALIGN(16); - ALfloat CoeffStep[HRIR_LENGTH][2] ALIGN(16); + ALIGN(16) ALfloat Coeffs[MaxChannels][HRIR_LENGTH][2]; + ALIGN(16) ALfloat CoeffStep[HRIR_LENGTH][2]; ALuint Delay[MaxChannels][2]; ALint DelayStep[2]; } HrtfParams; -- 2.11.4.GIT