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 --- OpenAL32/Include/alu.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenAL32/Include/alu.h') diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index c1aa143d..f931b737 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -13,7 +13,9 @@ #include "alMain.h" #include "alBuffer.h" #include "alFilter.h" + #include "hrtf.h" +#include "align.h" #define F_PI (3.14159265358979323846f) @@ -38,15 +40,15 @@ extern "C" { #endif typedef struct HrtfState { - ALIGN(16) ALfloat History[MAX_INPUT_CHANNELS][SRC_HISTORY_LENGTH]; - ALIGN(16) ALfloat Values[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; + alignas(16) ALfloat History[MAX_INPUT_CHANNELS][SRC_HISTORY_LENGTH]; + alignas(16) ALfloat Values[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; } HrtfState; typedef struct HrtfParams { ALfloat Gain; ALfloat Dir[3]; - ALIGN(16) ALfloat Coeffs[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; - ALIGN(16) ALfloat CoeffStep[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; + alignas(16) ALfloat Coeffs[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; + alignas(16) ALfloat CoeffStep[MAX_INPUT_CHANNELS][HRIR_LENGTH][2]; ALuint Delay[MAX_INPUT_CHANNELS][2]; ALint DelayStep[MAX_INPUT_CHANNELS][2]; ALuint IrSize; -- cgit v1.2.3