diff options
author | Chris Robinson <[email protected]> | 2020-12-16 01:18:11 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-16 01:40:15 -0800 |
commit | c96b50fb657f6760636becab70dbbdaa1bfb2974 (patch) | |
tree | 81fa749a7a1fbc8333531ebf08a7fe01807abfc4 /al/event.h | |
parent | 5ad28f8cbaa52f3f6bf4c4cdbfbdbeb3087020e1 (diff) |
Use a separate enum for the VoiceChange state
Diffstat (limited to 'al/event.h')
-rw-r--r-- | al/event.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -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() }; |