| 371 | |
| 372 | |
| 373 | void 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 |
nothing calls this directly
no test coverage detected