| 54 | } |
| 55 | |
| 56 | constexpr 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 | |
| 73 | constexpr std::optional<DebugSeverity> GetDebugSeverity(ALenum severity) noexcept |
| 74 | { |
no outgoing calls
no test coverage detected