-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsound_common.c
54 lines (48 loc) · 1.2 KB
/
sound_common.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/***************************************************************
* sound_common.c ####### *
* chaos-eng(c) int13h 2005-2010 #.....# *
* #..@..# *
* common sound routines #.....# *
* ####### *
* *
***************************************************************/
/*
############
#..Globals.#
############
*/
#include "globals.h"
#include "structs.h"
#include "main.h"
#include "log.h"
#include "chaos.h"
#ifdef WITH_X11
#include "sound_x11.h"
#endif
#ifdef WITH_NCURSES
#include "sound_ncurses.h"
#endif
extern int frontend_mode;
extern char log_message[LOGMSGLEN];
/*
###########
#..beep().#
###########
*/
void CE_beep(void)
{
console_log(__FILE__,__func__,__LINE__,LOG_NOTICE, sprintf(
log_message,"BEEP!"));
switch(frontend_mode){
#ifdef WITH_X11
case FE_X11:
beep_x11();
break;
#endif
#ifdef WITH_NCURSES
case FE_NCURSES:
beep_ncurses();
break;
#endif
}
}