diff options
Diffstat (limited to 'alc/context.h')
-rw-r--r-- | alc/context.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/alc/context.h b/alc/context.h index 8613c2a3..b5ee440b 100644 --- a/alc/context.h +++ b/alc/context.h @@ -35,36 +35,36 @@ struct ALsource; using uint = unsigned int; -constexpr size_t DebugSourceBase{0}; -enum class DebugSource : ALenum { - API = AL_DEBUG_SOURCE_API_SOFT, - System = AL_DEBUG_SOURCE_AUDIO_SYSTEM_SOFT, - ThirdParty = AL_DEBUG_SOURCE_THIRD_PARTY_SOFT, - Application = AL_DEBUG_SOURCE_APPLICATION_SOFT, - Other = AL_DEBUG_SOURCE_OTHER_SOFT, +constexpr uint DebugSourceBase{0}; +enum class DebugSource : uint8_t { + API = 0, + System, + ThirdParty, + Application, + Other, }; -constexpr size_t DebugSourceCount{5}; - -constexpr size_t DebugTypeBase{DebugSourceBase + DebugSourceCount}; -enum class DebugType : ALenum { - Error = AL_DEBUG_TYPE_ERROR_SOFT, - DeprecatedBehavior = AL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_SOFT, - UndefinedBehavior = AL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_SOFT, - Portability = AL_DEBUG_TYPE_PORTABILITY_SOFT, - Performance = AL_DEBUG_TYPE_PERFORMANCE_SOFT, - Marker = AL_DEBUG_TYPE_MARKER_SOFT, - Other = AL_DEBUG_TYPE_OTHER_SOFT, +constexpr uint DebugSourceCount{5}; + +constexpr uint DebugTypeBase{DebugSourceBase + DebugSourceCount}; +enum class DebugType : uint8_t { + Error = 0, + DeprecatedBehavior, + UndefinedBehavior, + Portability, + Performance, + Marker, + Other, }; -constexpr size_t DebugTypeCount{7}; - -constexpr size_t DebugSeverityBase{DebugTypeBase + DebugTypeCount}; -enum class DebugSeverity : ALenum { - High = AL_DEBUG_SEVERITY_HIGH_SOFT, - Medium = AL_DEBUG_SEVERITY_MEDIUM_SOFT, - Low = AL_DEBUG_SEVERITY_LOW_SOFT, - Notification = AL_DEBUG_SEVERITY_NOTIFICATION_SOFT, +constexpr uint DebugTypeCount{7}; + +constexpr uint DebugSeverityBase{DebugTypeBase + DebugTypeCount}; +enum class DebugSeverity : uint8_t { + High = 0, + Medium, + Low, + Notification, }; -constexpr size_t DebugSeverityCount{4}; +constexpr uint DebugSeverityCount{4}; struct SourceSubList { |