diff options
author | Chris Robinson <[email protected]> | 2015-10-15 15:13:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-15 15:13:19 -0700 |
commit | 2ff3bf5ab0240c2273cef3ba8a958ec063be691b (patch) | |
tree | 7704fa7c91af3a31445e0f40e967c37c58770c1a /OpenAL32 | |
parent | 97f53d941c32b24470a0f589853ce60cfbe7f15b (diff) |
Use a constant value for the post-position padding
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 7 |
2 files changed, 6 insertions, 3 deletions
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 |