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

Function Pause

engine/sound/src/sound.cpp:1252–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250 }
1251
1252 Result Pause(HSoundInstance sound_instance, bool pause)
1253 {
1254 if (!g_SoundSystem)
1255 return RESULT_OK;
1256 DM_MUTEX_OPTIONAL_SCOPED_LOCK(g_SoundSystem->m_Mutex);
1257 sound_instance->m_Playing = (uint8_t)!pause;
1258 return RESULT_OK;
1259 }
1260
1261 uint32_t GetAndIncreasePlayCounter()
1262 {

Callers 2

StepFrameFunction · 0.50
CompSoundUpdateFunction · 0.50

Calls 1

dmAtomicStore32Function · 0.85

Tested by

no test coverage detected