diff options
-rw-r--r-- | alc/events.cpp | 2 | ||||
-rw-r--r-- | alc/events.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/alc/events.cpp b/alc/events.cpp index 6c91261c..a80faf8a 100644 --- a/alc/events.cpp +++ b/alc/events.cpp @@ -70,7 +70,7 @@ FORCE_ALIGN ALCboolean ALC_APIENTRY alcEventControlSOFT(ALCsizei count, const AL return ALC_FALSE; } - std::bitset<al::to_underlying(alc::EventType::Count)> eventSet{0}; + alc::EventBitSet eventSet{0}; for(ALCenum type : al::span{events, static_cast<ALCuint>(count)}) { auto etype = GetEventType(type); diff --git a/alc/events.h b/alc/events.h index ddb3808a..4acc505d 100644 --- a/alc/events.h +++ b/alc/events.h @@ -24,7 +24,8 @@ enum class DeviceType : ALCenum { Capture = ALC_CAPTURE_DEVICE_SOFT, }; -inline std::bitset<al::to_underlying(EventType::Count)> EventsEnabled{0}; +using EventBitSet = std::bitset<al::to_underlying(EventType::Count)>; +inline EventBitSet EventsEnabled{0}; inline std::mutex EventMutex; |