diff options
author | Chris Robinson <[email protected]> | 2017-02-13 11:29:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-13 11:29:32 -0800 |
commit | 0324712540f88d18f1fa8f18f7a72da06af00d75 (patch) | |
tree | df0e7b260f1833f3e5b42503225d2b6978ccf181 /OpenAL32/Include/alu.h | |
parent | 841d0bb893e19dbe6f95bd80a3ac50997f9e8f0d (diff) |
Put BsincState in a generic union
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r-- | OpenAL32/Include/alu.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 ); |