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

Function switch

src/lib/libopenal.js:1183–1195  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

1181 }
1182
1183 switch (param) {
1184 case 0x202 /* AL_SOURCE_RELATIVE */:
1185 if (value === {{{ cDefs.AL_TRUE }}}) {
1186 src.relative = true;
1187 AL.updateSourceSpace(src);
1188 } else if (value === {{{ cDefs.AL_FALSE }}}) {
1189 src.relative = false;
1190 AL.updateSourceSpace(src);
1191 } else {
1192#if OPENAL_DEBUG
1193 dbg(`${funcname}() param AL_SOURCE_RELATIVE value ${value} is out of range`);
1194#endif
1195 AL.currentCtx.err = {{{ cDefs.AL_INVALID_VALUE }}};
1196 return;
1197 }
1198 break;

Callers

nothing calls this directly

Calls 3

makeSetValueFunction · 0.85
ptrToStringFunction · 0.85
dbgFunction · 0.70

Tested by

no test coverage detected