aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/Include/alu.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 89c210b9..34c3575b 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -35,6 +35,8 @@ typedef struct ALvoice {
ALuint Offset; /* Number of output samples mixed since starting. */
+ alignas(16) ALfloat PrevSamples[MAX_INPUT_CHANNELS][MAX_PREVIOUS_SAMPLES];
+
DirectParams Direct;
SendParams Send[MAX_SENDS];
} ALvoice;
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 051a0f0d..ba7afedb 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -32,6 +32,9 @@
#define MAX_PITCH (255)
+/* Maximum number of previous buffer samples needed for resampling. */
+#define MAX_PREVIOUS_SAMPLES 4
+
#ifdef __cplusplus
extern "C" {