From 0f51b6df4ba9f93048cd9aa10dcd845527ae9cc6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 15 May 2015 23:28:03 -0700 Subject: Add an HRTF status query This can report the status of HRTF, specifying if it's enabled or not and why (currently only reports unsupported formats, but this may be extended). --- OpenAL32/Include/alMain.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 361af851..fb2d810e 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -42,6 +42,10 @@ #ifndef ALC_SOFT_HRTF #define ALC_SOFT_HRTF 1 #define ALC_HRTF_SOFT 0x1992 +#define ALC_HRTF_STATUS_SOFT 0x1993 +#define ALC_HRTF_DISABLED_SOFT 0x0000 +#define ALC_HRTF_ENABLED_SOFT 0x0001 +#define ALC_HRTF_UNSUPPORTED_FORMAT_SOFT 0x0002 #endif #ifndef ALC_SOFT_midi_interface @@ -688,6 +692,7 @@ struct ALCdevice_struct /* HRTF filter tables */ const struct Hrtf *Hrtf; + ALCenum Hrtf_Status; enum HrtfMode Hrtf_Mode; HrtfState Hrtf_State[MAX_OUTPUT_CHANNELS]; HrtfParams Hrtf_Params[MAX_OUTPUT_CHANNELS]; -- cgit v1.2.3