| 41 | |
| 42 | |
| 43 | constexpr std::optional<DebugSource> GetDebugSource(ALenum source) noexcept |
| 44 | { |
| 45 | switch(source) |
| 46 | { |
| 47 | case AL_DEBUG_SOURCE_API_EXT: return DebugSource::API; |
| 48 | case AL_DEBUG_SOURCE_AUDIO_SYSTEM_EXT: return DebugSource::System; |
| 49 | case AL_DEBUG_SOURCE_THIRD_PARTY_EXT: return DebugSource::ThirdParty; |
| 50 | case AL_DEBUG_SOURCE_APPLICATION_EXT: return DebugSource::Application; |
| 51 | case AL_DEBUG_SOURCE_OTHER_EXT: return DebugSource::Other; |
| 52 | } |
| 53 | return std::nullopt; |
| 54 | } |
| 55 | |
| 56 | constexpr std::optional<DebugType> GetDebugType(ALenum type) noexcept |
| 57 | { |
no outgoing calls
no test coverage detected