diff options
author | Chris Robinson <[email protected]> | 2021-07-31 14:24:49 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-07-31 14:24:49 -0700 |
commit | 0a0849db997df2015223bfd43cb7490fc8cd601e (patch) | |
tree | d5ea8c1e3bf0d905e9ec36d43ab0ad5a96fb68f4 /alc/alu.h | |
parent | 440b59704c82684786bf7e251b4882f2a12c4c06 (diff) |
Use an optional bool instead of two tri-state enums
Diffstat (limited to 'alc/alu.h')
-rw-r--r-- | alc/alu.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1,6 +1,8 @@ #ifndef ALU_H #define ALU_H +#include "aloptional.h" + struct ALCcontext; struct ALCdevice; struct EffectSlot; @@ -11,12 +13,6 @@ constexpr float GainMixMax{1000.0f}; /* +60dB */ constexpr float AirAbsorbGainHF{0.99426f}; /* -0.05dB */ -enum HrtfRequestMode { - Hrtf_Default = 0, - Hrtf_Enable = 1, - Hrtf_Disable = 2, -}; - void aluInit(void); /* aluInitRenderer @@ -24,8 +20,7 @@ void aluInit(void); * Set up the appropriate panning method and mixing method given the device * properties. */ -void aluInitRenderer(ALCdevice *device, int hrtf_id, HrtfRequestMode hrtf_appreq, - HrtfRequestMode hrtf_userreq); +void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional<bool> hrtfreq); void aluInitEffectPanning(EffectSlot *slot, ALCcontext *context); |