MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SoundCore_StartTimer

Function SoundCore_StartTimer

source/SoundCore.cpp:295–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293static VOID CALLBACK SoundCore_TimerFunc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
294
295static bool SoundCore_StartTimer()
296{
297 if(g_bTimerActive)
298 return true;
299
300 g_nTimerID = SetTimer(NULL, 0, 1, SoundCore_TimerFunc); // 1ms interval
301 if(g_nTimerID == 0)
302 {
303 fprintf(stderr, "Error creating timer\n");
304 _ASSERT(0);
305 return false;
306 }
307
308 g_bTimerActive = true;
309 return true;
310}
311
312void SoundCore_StopTimer()
313{

Callers 1

SoundCore_SetFadeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected