From 8fa4f276f89985be44007ce166109837cbfd5763 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 6 Jul 2015 12:37:21 -0700 Subject: Allow specifying ALC_DONT_CARE_SOFT for ALC_HRTF_SOFT ALC_FALSE now indicates explicitly no HRTF mixing, while ALC_DONT_CARE_SOFT is autodetect. --- OpenAL32/Include/alMain.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index cd584966..8dad968f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -42,6 +42,7 @@ #ifndef ALC_SOFT_HRTF #define ALC_SOFT_HRTF 1 #define ALC_HRTF_SOFT 0x1992 +#define ALC_DONT_CARE_SOFT 0x0002 #define ALC_HRTF_STATUS_SOFT 0x1993 #define ALC_HRTF_DISABLED_SOFT 0x0000 #define ALC_HRTF_ENABLED_SOFT 0x0001 @@ -764,8 +765,13 @@ struct ALCdevice_struct #define DEVICE_CHANNELS_REQUEST (1<<2) // Sample type was requested by the config file #define DEVICE_SAMPLE_TYPE_REQUEST (1<<3) -// HRTF was requested by the app -#define DEVICE_HRTF_REQUEST (1<<4) +// Mask and flags to indicate HRTF mode requested +#define DEVICE_HRTF_REQUEST_MASK ((1<<4) | (1<<5)) +enum HrtfRequestMode { + Hrtf_Default = 0, + Hrtf_Enable = 1<<4, + Hrtf_Disable = 2<<4, +}; // Specifies if the DSP is paused at user request #define DEVICE_PAUSED (1<<30) -- cgit v1.2.3