aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-07-06 12:37:21 -0700
committerChris Robinson <[email protected]>2015-07-06 12:37:21 -0700
commit8fa4f276f89985be44007ce166109837cbfd5763 (patch)
treeb0342cbe526acea3e1cec4f121c53d57ab921b10 /OpenAL32/Include
parentf58d985789f86ff11d1e2d1dda53801f447e2736 (diff)
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.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h10
1 files changed, 8 insertions, 2 deletions
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)