diff options
author | Chris Robinson <[email protected]> | 2017-02-28 21:01:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-28 21:01:13 -0800 |
commit | 521abf2e0725cc4e4abfc17e75681e47fb372f68 (patch) | |
tree | 1082d544446782001c9f6a644955f9e510f60df6 /OpenAL32/Include/alMain.h | |
parent | 51092a6315cf0a307efec2d76a32dde0f38873a3 (diff) |
Dynamically allocate the channel delay buffers
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |