MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / uiAlarm

Function uiAlarm

Libraries/unrar/uiconsole.cpp:373–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371
372
373void uiAlarm(UIALARM_TYPE Type)
374{
375 if (uiSoundNotify==SOUND_NOTIFY_ON)
376 {
377 static clock_t LastTime=-10; // Negative to always beep first time.
378 if ((MonoClock()-LastTime)/CLOCKS_PER_SEC>5)
379 {
380#ifdef _WIN_ALL
381 MessageBeep(-1);
382#else
383 putwchar('\007');
384#endif
385 LastTime=MonoClock();
386 }
387 }
388}
389
390
391

Callers

nothing calls this directly

Calls 1

MonoClockFunction · 0.85

Tested by

no test coverage detected