| 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 | { |
nothing calls this directly
no test coverage detected