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

Function SoundThread

engine/sound/src/sound.cpp:2093–2105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2091 }
2092
2093 static void SoundThread(void* ctx)
2094 {
2095 SoundSystem* sound = (SoundSystem*)ctx;
2096 while (dmAtomicGet32(&sound->m_IsRunning))
2097 {
2098 Result result = RESULT_OK;
2099 if (!dmAtomicGet32(&sound->m_IsPaused))
2100 result = UpdateInternal(sound);
2101
2102 dmAtomicStore32(&sound->m_Status, (int)result);
2103 dmTime::Sleep(8000);
2104 }
2105 }
2106
2107 Result Update()
2108 {

Callers

nothing calls this directly

Calls 4

dmAtomicGet32Function · 0.85
dmAtomicStore32Function · 0.85
UpdateInternalFunction · 0.70
SleepFunction · 0.50

Tested by

no test coverage detected