diff options
author | Chris Robinson <[email protected]> | 2016-04-14 10:44:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-14 10:44:57 -0700 |
commit | d924e3d6c4aa8cfbc29c5522e16b30f7adaed597 (patch) | |
tree | 3eb8d9ad88d5ae981d147d5373d3b0c17cb28fa7 /OpenAL32 | |
parent | 38247e021a95ef7db368d385479090c6c98e2ba9 (diff) |
Split aluInitPanning into separate functions for HRTF or UHJ
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 8 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 60dc9fb1..909c42cd 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -472,6 +472,8 @@ struct ALCdevice_struct al_string Hrtf_Name; const struct Hrtf *Hrtf; ALCenum Hrtf_Status; + + /* HRTF filter state for dry buffer content */ HrtfState Hrtf_State[MAX_OUTPUT_CHANNELS]; HrtfParams Hrtf_Params[MAX_OUTPUT_CHANNELS]; ALuint Hrtf_Offset; @@ -479,12 +481,12 @@ struct ALCdevice_struct /* UHJ encoder state */ struct Uhj2Encoder *Uhj_Encoder; - // Stereo-to-binaural filter - struct bs2b *Bs2b; - /* High quality Ambisonic decoder */ struct BFormatDec *AmbiDecoder; + // Stereo-to-binaural filter + struct bs2b *Bs2b; + /* Rendering mode. */ enum RenderMode Render_Mode; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 08f25204..a70daa46 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -281,6 +281,8 @@ inline ALfloat resample_fir8(ALfloat val0, ALfloat val1, ALfloat val2, ALfloat v void aluInitMixer(void); ALvoid aluInitPanning(ALCdevice *Device); +ALvoid aluInitHrtfPanning(ALCdevice *device); +ALvoid aluInitUhjPanning(ALCdevice *device); void aluInitEffectPanning(struct ALeffectslot *slot); |