From 609ee742115aa10139d5e4c3f8915306751c227f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 10 Mar 2022 17:47:42 -0800 Subject: Add a config option for reverse-z The same as the __ALSOFT_REVERSE_Z env var, but in the config file. Should only be used for per-game config files (either along side the executable, or setting the ALSOFT_CONF env var when launching the app). --- alc/alu.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'alc/alu.h') diff --git a/alc/alu.h b/alc/alu.h index b88f7cf5..03f56f56 100644 --- a/alc/alu.h +++ b/alc/alu.h @@ -1,6 +1,8 @@ #ifndef ALU_H #define ALU_H +#include + #include "aloptional.h" struct ALCcontext; @@ -13,7 +15,14 @@ enum class StereoEncoding : unsigned char; constexpr float GainMixMax{1000.0f}; /* +60dB */ -void aluInit(void); +enum CompatFlags : uint8_t { + ReverseZ, + + Count +}; +using CompatFlagBitset = std::bitset; + +void aluInit(CompatFlagBitset flags); /* aluInitRenderer * @@ -24,8 +33,4 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional