MCPcopy Create free account
hub / github.com/axmolengine/axmol / GetDebugType

Function GetDebugType

3rdparty/openal/al/debug.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56constexpr std::optional<DebugType> GetDebugType(ALenum type) noexcept
57{
58 switch(type)
59 {
60 case AL_DEBUG_TYPE_ERROR_EXT: return DebugType::Error;
61 case AL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_EXT: return DebugType::DeprecatedBehavior;
62 case AL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_EXT: return DebugType::UndefinedBehavior;
63 case AL_DEBUG_TYPE_PORTABILITY_EXT: return DebugType::Portability;
64 case AL_DEBUG_TYPE_PERFORMANCE_EXT: return DebugType::Performance;
65 case AL_DEBUG_TYPE_MARKER_EXT: return DebugType::Marker;
66 case AL_DEBUG_TYPE_PUSH_GROUP_EXT: return DebugType::PushGroup;
67 case AL_DEBUG_TYPE_POP_GROUP_EXT: return DebugType::PopGroup;
68 case AL_DEBUG_TYPE_OTHER_EXT: return DebugType::Other;
69 }
70 return std::nullopt;
71}
72
73constexpr std::optional<DebugSeverity> GetDebugSeverity(ALenum severity) noexcept
74{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected