MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / LoadSLFuncs

Function LoadSLFuncs

src/Audio_SLES.c:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static const cc_string slLib = String_FromConst("libOpenSLES.so");
35
36static cc_bool LoadSLFuncs(void) {
37 static const struct DynamicLibSym funcs[] = {
38 DynamicLib_ReqSym(slCreateEngine), DynamicLib_ReqSym(SL_IID_NULL),
39 DynamicLib_ReqSym(SL_IID_PLAY), DynamicLib_ReqSym(SL_IID_ENGINE),
40 DynamicLib_ReqSym(SL_IID_BUFFERQUEUE), DynamicLib_ReqSym(SL_IID_PLAYBACKRATE),
41 DynamicLib_ReqSym(SL_IID_VOLUME)
42 };
43 void* lib;
44
45 return DynamicLib_LoadAll(&slLib, funcs, Array_Elems(funcs), &lib);
46}
47
48cc_bool AudioBackend_Init(void) {
49 static const cc_string msg = String_FromConst("Failed to init OpenSLES. No audio will play.");

Callers 1

AudioBackend_InitFunction · 0.85

Calls 1

DynamicLib_LoadAllFunction · 0.85

Tested by

no test coverage detected