MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getErrorString

Method getErrorString

src/audio/AudioEngine.cpp:35–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 const char* AudioEngine::getErrorString(size_t errorCode)
36 {
37 switch (errorCode)
38 {
39 case AL_NO_ERROR:
40 return "AL_NO_ERROR";
41 case AL_INVALID_NAME:
42 return "AL_INVALID_NAME";
43 case AL_INVALID_ENUM:
44 return "AL_INVALID_ENUM";
45 case AL_INVALID_VALUE:
46 return "AL_INVALID_VALUE";
47 case AL_INVALID_OPERATION:
48 return "AL_INVALID_OPERATION";
49 case AL_OUT_OF_MEMORY:
50 return "AL_OUT_OF_MEMORY";
51 }
52 return "UNKNOWN";
53 }
54
55 AudioEngine::AudioEngine(const std::string& name)
56 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected