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

Function pauseAudioDevice

core/audio/AudioEngineImpl.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57namespace ax
58{
59static void pauseAudioDevice()
60{
61 AXLOGD("{}", "===> pauseAudioDevice");
62#if AX_USE_ALSOFT
63 alcDevicePauseSOFT(s_ALDevice);
64#else
65 if (alcGetCurrentContext())
66 alcMakeContextCurrent(nullptr);
67#endif
68}
69
70static void resumeAudioDevice()
71{

Callers 1

Calls 3

alcDevicePauseSOFTFunction · 0.85
alcGetCurrentContextFunction · 0.85
alcMakeContextCurrentFunction · 0.85

Tested by

no test coverage detected