diff options
author | Chris Robinson <[email protected]> | 2023-07-10 15:45:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-07-10 15:45:04 -0700 |
commit | ead05bc8de655911327d7356f55dab0f79371cfc (patch) | |
tree | fa06a02f76d91cd7d736752ec30c341525291b29 /alc | |
parent | 3efdc1e43b533de15967fc0e93ef841f068a8fa0 (diff) |
Use a type alias for ALC event bit masks
Diffstat (limited to 'alc')
-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; |