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

Function GetDebugSource

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

Source from the content-addressed store, hash-verified

41
42
43constexpr 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
56constexpr std::optional<DebugType> GetDebugType(ALenum type) noexcept
57{

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected