diff options
author | Chris Robinson <[email protected]> | 2018-12-26 15:35:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-26 15:35:05 -0800 |
commit | 4f253a935a14e49a77516a56e0d4c6d6177a56b6 (patch) | |
tree | 088b3171e77f6c7863c9bbe851b4f82f4a58fbe3 /OpenAL32/Include | |
parent | c5be03b51e8fd9bda3a46c345bdc945cfd965c2e (diff) |
Handle HRTF coefficients and values by reference where possible
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 42c754cc..775d34f6 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -108,7 +108,7 @@ enum { struct MixHrtfParams { - const ALfloat (*Coeffs)[2]; + const ALfloat (*Coeffs)[HRIR_LENGTH][2]; ALsizei Delay[2]; ALfloat Gain; ALfloat GainStep; @@ -286,8 +286,7 @@ using HrtfMixerBlendFunc = void(*)(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT const HrtfParams *oldparams, MixHrtfParams *newparams, HrtfState *hrtfstate, ALsizei BufferSize); using HrtfDirectMixerFunc = void(*)(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, - const ALfloat *data, ALsizei Offset, const ALsizei IrSize, const ALfloat (*RESTRICT Coeffs)[2], - ALfloat (*RESTRICT Values)[2], ALsizei BufferSize); + const ALfloat *data, DirectHrtfState *State, const ALsizei Chan, const ALsizei BufferSize); #define GAIN_MIX_MAX (1000.0f) /* +60dB */ |