From 521abf2e0725cc4e4abfc17e75681e47fb372f68 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 28 Feb 2017 21:01:13 -0800 Subject: Dynamically allocate the channel delay buffers --- OpenAL32/Include/alMain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 9407cdce..cc30dcef 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -631,12 +631,12 @@ TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry) /* Maximum delay in samples for speaker distance compensation. */ -#define MAX_DELAY_LENGTH 128 +#define MAX_DELAY_LENGTH 1024 typedef struct DistanceComp { ALfloat Gain; ALsizei Length; /* Valid range is [0...MAX_DELAY_LENGTH). */ - alignas(16) ALfloat Buffer[MAX_DELAY_LENGTH]; + ALfloat *Buffer; } DistanceComp; /* Size for temporary storage of buffer data, in ALfloats. Larger values need -- cgit v1.2.3