summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-16 10:42:48 -0700
committerChris Robinson <[email protected]>2012-08-16 10:42:48 -0700
commit9737f683150180a5531d276959030ffa0bd35492 (patch)
treedf3ff01ead6984516453061fafa53881b6912745
parent2a8c26e390bb60e283e8371b8a79819cf26716ad (diff)
Place the alignment attribute before the variable declaration
-rw-r--r--Alc/mixer_inc.c2
-rw-r--r--OpenAL32/Include/alSource.h8
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;