MCPcopy Create free account
hub / github.com/axmolengine/axmol / resumeAudioDevice

Function resumeAudioDevice

core/audio/AudioEngineImpl.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void resumeAudioDevice()
71{
72 AXLOGD("{}", "===> resumeAudioDevice");
73#if AX_USE_ALSOFT
74 alcDeviceResumeSOFT(s_ALDevice);
75#else
76 if (alcGetCurrentContext())
77 alcMakeContextCurrent(nullptr);
78 alcMakeContextCurrent(s_ALContext);
79#endif
80}
81}
82
83#if AX_TARGET_PLATFORM == AX_PLATFORM_IOS

Callers 1

Calls 3

alcDeviceResumeSOFTFunction · 0.85
alcGetCurrentContextFunction · 0.85
alcMakeContextCurrentFunction · 0.85

Tested by

no test coverage detected