aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/voice.h')
-rw-r--r--alc/voice.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/alc/voice.h b/alc/voice.h
index 29ca0484..a9774fd3 100644
--- a/alc/voice.h
+++ b/alc/voice.h
@@ -175,15 +175,13 @@ struct VoicePropsItem : public VoiceProps {
DEF_NEWDEL(VoicePropsItem)
};
-#define VOICE_IS_STATIC (1u<<0)
-#define VOICE_IS_CALLBACK (1u<<1)
-#define VOICE_IS_AMBISONIC (1u<<2) /* Voice needs HF scaling for ambisonic upsampling. */
-#define VOICE_CALLBACK_STOPPED (1u<<3)
-#define VOICE_IS_FADING (1u<<4) /* Fading sources use gain stepping for smooth transitions. */
-#define VOICE_HAS_HRTF (1u<<5)
-#define VOICE_HAS_NFC (1u<<6)
-
-#define VOICE_TYPE_MASK (VOICE_IS_STATIC | VOICE_IS_CALLBACK)
+constexpr ALuint VoiceIsStatic{ 1u<<0};
+constexpr ALuint VoiceIsCallback{ 1u<<1};
+constexpr ALuint VoiceIsAmbisonic{ 1u<<2}; /* Needs HF scaling for ambisonic upsampling. */
+constexpr ALuint VoiceCallbackStopped{1u<<3};
+constexpr ALuint VoiceIsFading{ 1u<<4}; /* Use gain stepping for smooth transitions. */
+constexpr ALuint VoiceHasHrtf{ 1u<<5};
+constexpr ALuint VoiceHasNfc{ 1u<<6};
struct Voice {
enum State {