MCPcopy Create free account
hub / github.com/defold/defold / SoundThreadEmscriptenCallback

Function SoundThreadEmscriptenCallback

engine/sound/src/sound_openal.cpp:415–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 static Result UpdateInternal(SoundSystem* sound);
414
415 static void SoundThreadEmscriptenCallback(void *ctx)
416 {
417 SoundSystem* sound = (SoundSystem*)ctx;
418
419 if (!dmAtomicGet32(&sound->m_IsRunning)) {
420 emscripten_cancel_main_loop();
421 return;
422 }
423
424 Result result = UpdateInternal(sound);
425 dmAtomicStore32(&sound->m_Status, (int)result);
426 }
427
428 static void SoundThread(void* _args)
429 {

Callers

nothing calls this directly

Calls 3

dmAtomicGet32Function · 0.85
dmAtomicStore32Function · 0.85
UpdateInternalFunction · 0.70

Tested by

no test coverage detected