aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-13 11:29:32 -0800
committerChris Robinson <[email protected]>2017-02-13 11:29:32 -0800
commit0324712540f88d18f1fa8f18f7a72da06af00d75 (patch)
treedf0e7b260f1833f3e5b42503225d2b6978ccf181 /OpenAL32/Include
parent841d0bb893e19dbe6f95bd80a3ac50997f9e8f0d (diff)
Put BsincState in a generic union
Diffstat (limited to 'OpenAL32/Include')
-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
);