From 59fc9aac0ee41518dba0cbd2f1518decffeaa480 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Apr 2014 02:11:04 -0700 Subject: Use C11 alignas when available --- Alc/mixer_inc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Alc/mixer_inc.c') diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index a2d0a16c..4748f785 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -2,8 +2,10 @@ #include "alMain.h" #include "alSource.h" + #include "hrtf.h" #include "mixer_defs.h" +#include "align.h" #define REAL_MERGE2(a,b) a##b @@ -36,7 +38,7 @@ void MixDirect_Hrtf(DirectParams *params, const ALfloat *restrict data, ALuint s ALfloat (*restrict Values)[2] = params->Mix.Hrtf.State.Values[srcchan]; ALuint Counter = maxu(params->Counter, OutPos) - OutPos; ALuint Offset = params->Offset + OutPos; - ALIGN(16) ALfloat Coeffs[HRIR_LENGTH][2]; + alignas(16) ALfloat Coeffs[HRIR_LENGTH][2]; ALuint Delay[2]; ALfloat left, right; ALuint pos; -- cgit v1.2.3