aboutsummaryrefslogtreecommitdiffstats
path: root/al/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'al/event.h')
-rw-r--r--al/event.h21
1 files changed, 11 insertions, 10 deletions
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()
};