MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / alformat_string

Function alformat_string

test/openal/test_openal_capture.c:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <AL/alext.h>
29
30const char* alformat_string(ALenum format) {
31 switch (format) {
32 #define CASE(X) case X: return #X;
33 CASE(AL_FORMAT_MONO8)
34 CASE(AL_FORMAT_MONO16)
35 CASE(AL_FORMAT_STEREO8)
36 CASE(AL_FORMAT_STEREO16)
37#ifdef ASSUME_AL_FLOAT32
38 CASE(AL_FORMAT_MONO_FLOAT32)
39 CASE(AL_FORMAT_STEREO_FLOAT32)
40#endif
41 #undef CASE
42 }
43 return "<no_string_available>";
44}
45
46#ifdef __EMSCRIPTEN__
47EMSCRIPTEN_KEEPALIVE

Callers 1

igniteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected