aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/Include/alu.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 4f04efe2..3111a48a 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -92,7 +92,7 @@ typedef struct ALvoice {
alignas(16) ALfloat PrevSamples[MAX_INPUT_CHANNELS][MAX_PRE_SAMPLES];
- BsincState SincState;
+ InterpState ResampleState;
struct {
ALfloat (*Buffer)[BUFFERSIZE];
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 642fb944..c3c7a20c 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -62,6 +62,10 @@ typedef struct BsincState {
} coeffs[BSINC_PHASE_COUNT];
} BsincState;
+typedef union InterpState {
+ BsincState bsinc;
+} InterpState;
+
typedef union aluVector {
alignas(16) ALfloat v[4];
@@ -148,7 +152,7 @@ typedef struct SendParams {
} SendParams;
-typedef const ALfloat* (*ResamplerFunc)(const BsincState *state,
+typedef const ALfloat* (*ResamplerFunc)(const InterpState *state,
const ALfloat *restrict src, ALuint frac, ALint increment,
ALfloat *restrict dst, ALsizei dstlen
);