From c96b50fb657f6760636becab70dbbdaa1bfb2974 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 16 Dec 2020 01:18:11 -0800 Subject: Use a separate enum for the VoiceChange state --- al/event.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'al/event.h') diff --git a/al/event.h b/al/event.h index a9f08091..53f62dac 100644 --- a/al/event.h +++ b/al/event.h @@ -1,12 +1,13 @@ #ifndef AL_EVENT_H #define AL_EVENT_H -#include "AL/al.h" -#include "AL/alc.h" - #include "almalloc.h" +struct ALCcontext; struct EffectState; +enum class VChangeState; + +using uint = unsigned int; enum { @@ -23,25 +24,25 @@ enum { }; struct AsyncEvent { - unsigned int EnumType{0u}; + uint EnumType{0u}; union { char dummy; struct { - ALuint id; - ALenum state; + uint id; + VChangeState state; } srcstate; struct { - ALuint id; - ALuint count; + uint id; + uint count; } bufcomp; struct { - ALchar msg[244]; + char msg[244]; } disconnect; EffectState *mEffectState; } u{}; AsyncEvent() noexcept = default; - constexpr AsyncEvent(unsigned int type) noexcept : EnumType{type} { } + constexpr AsyncEvent(uint type) noexcept : EnumType{type} { } DISABLE_ALLOC() }; -- cgit v1.2.3