diff options
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); |