From 2ff3bf5ab0240c2273cef3ba8a958ec063be691b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 Oct 2015 15:13:19 -0700 Subject: Use a constant value for the post-position padding --- OpenAL32/Include/alSource.h | 2 +- OpenAL32/Include/alu.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 34c3575b..c101b321 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -35,7 +35,7 @@ typedef struct ALvoice { ALuint Offset; /* Number of output samples mixed since starting. */ - alignas(16) ALfloat PrevSamples[MAX_INPUT_CHANNELS][MAX_PREVIOUS_SAMPLES]; + alignas(16) ALfloat PrevSamples[MAX_INPUT_CHANNELS][MAX_PRE_SAMPLES]; DirectParams Direct; SendParams Send[MAX_SENDS]; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index ba7afedb..20eefa93 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -32,8 +32,11 @@ #define MAX_PITCH (255) -/* Maximum number of previous buffer samples needed for resampling. */ -#define MAX_PREVIOUS_SAMPLES 4 +/* Maximum number of buffer samples before the current pos needed for resampling. */ +#define MAX_PRE_SAMPLES 4 + +/* Maximum number of buffer samples after the current pos needed for resampling. */ +#define MAX_POST_SAMPLES 4 #ifdef __cplusplus -- cgit v1.2.3