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

Function Update

engine/sound/src/sound.cpp:2107–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2105 }
2106
2107 Result Update()
2108 {
2109 DM_PROFILE("Sound");
2110 SoundSystem* sound = g_SoundSystem;
2111 if (!sound)
2112 {
2113 return RESULT_OK;
2114 }
2115
2116 if (!sound->m_Thread)
2117 return UpdateInternal(sound);
2118 return (Result)dmAtomicGet32(&sound->m_Status);
2119 }
2120
2121 Result Pause(bool pause)
2122 {

Callers 3

TEST_PFunction · 0.50
PlaySoundFunction · 0.50
TESTFunction · 0.50

Calls 2

dmAtomicGet32Function · 0.85
UpdateInternalFunction · 0.70

Tested by 3

TEST_PFunction · 0.40
PlaySoundFunction · 0.40
TESTFunction · 0.40