diff options
author | Chris Robinson <[email protected]> | 2014-05-18 09:31:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-18 09:31:08 -0700 |
commit | 5a1abf69189463312787921f5a3cf5fd35bf65c2 (patch) | |
tree | e48f2cd51f7aa4bfe2a92489bf82445f2d9d98d3 /OpenAL32/Include | |
parent | 29b5dae6aa010224b2fd428530e1cd67d6d92e1a (diff) |
Use different parameters for HRTF mixers
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 6 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index c3513525..0839e5b9 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -32,9 +32,13 @@ typedef struct ALactivesource { /** Current target parameters used for mixing. */ ResamplerFunc Resample; - DryMixerFunc DryMix; + union { + DryMixerFunc Mix; + HrtfMixerFunc HrtfMix; + } Dry; WetMixerFunc WetMix; + ALboolean IsHrtf; ALint Step; DirectParams Direct; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 4354c76e..7816ee94 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -119,6 +119,10 @@ typedef ALvoid (*DryMixerFunc)(struct DirectParams *params, ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *restrict data, ALuint Counter, ALuint srcchan, ALuint OutPos, ALuint BufferSize); +typedef void (*HrtfMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, + ALuint Counter, ALuint Offset, const ALuint IrSize, + const HrtfParams *hrtfparams, HrtfState *hrtfstate, + ALuint OutPos, ALuint BufferSize); typedef ALvoid (*WetMixerFunc)(struct SendParams *params, const ALfloat *restrict data, ALuint OutPos, ALuint BufferSize); |