MCPcopy Create free account
hub / github.com/clementgallet/libTAS / FMOD_EventSystem_Create

Function FMOD_EventSystem_Create

src/library/audio/fmod/fmod.cpp:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int FMOD_EventSystem_Create(void **eventsystem)
49{
50 LOGTRACE(LCF_SOUND);
51
52 LINK_NAMESPACE(FMOD_EventSystem_Create, "fmod");
53 LINK_NAMESPACE(FMOD_EventSystem_GetSystemObject, "fmod");
54 LINK_NAMESPACE(FMOD_System_SetOutput, "fmod");
55
56 int ret = orig::FMOD_EventSystem_Create(eventsystem);
57
58 /* We force the output to be ALSA */
59 void* system;
60 orig::FMOD_EventSystem_GetSystemObject(*eventsystem, &system);
61 orig::FMOD_System_SetOutput(system, 11 /* FMOD_OUTPUTTYPE_ALSA */);
62
63 return ret;
64}
65
66int FMOD_System_SetOutput(void *system, int)
67{

Callers

nothing calls this directly

Calls 1

FMOD_System_SetOutputFunction · 0.85

Tested by

no test coverage detected