CTWM
|
#include "ctwm.h"
#include <rplay.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "event_names.h"
#include "sound.h"
Go to the source code of this file.
Macros | |
#define | HOSTNAME_LEN 200 |
#define | NMAGICEVENTS (sizeof(magic_events) / sizeof(*magic_events)) |
#define | NEVENTS (event_names_size() + NMAGICEVENTS) |
Functions | |
static char * | trim_spaces (char *str) |
static int | sound_magic_event_name2num (const char *name) |
void | sound_init (void) |
void | sound_clear_list (void) |
void | sound_load_list (void) |
void | play_sound (int snd) |
void | play_startup_sound (void) |
void | play_exit_sound (void) |
void | sound_set_from_config (void) |
void | toggle_sound (void) |
void | reread_sounds (void) |
void | set_sound_host (char *host) |
int | set_sound_event_name (const char *ename, const char *soundfile) |
int | set_sound_event (int snd, const char *soundfile) |
Variables | |
RPLAY ** | rp = NULL |
static int | need_sound_init = 1 |
static int | sound_from_config = 0 |
static int | sound_fd = 0 |
static int | sound_state = 1 |
static char | hostname [200] |
static const char * | magic_events [] |
#define HOSTNAME_LEN 200 |
Definition at line 25 of file sound.c.
Referenced by set_sound_host(), and sound_init().
#define NEVENTS (event_names_size() + NMAGICEVENTS) |
Definition at line 76 of file sound.c.
Referenced by play_sound(), sound_clear_list(), and sound_init().
#define NMAGICEVENTS (sizeof(magic_events) / sizeof(*magic_events)) |
Definition at line 55 of file sound.c.
Referenced by sound_magic_event_name2num().
Definition at line 258 of file sound.c.
References play_sound(), and sound_magic_event_name2num().
Referenced by DoShutdown().
Definition at line 222 of file sound.c.
References need_sound_init, NEVENTS, PlaceX, rp, sound_fd, and sound_state.
Referenced by DispatchEvent(), DispatchEvent2(), play_exit_sound(), and play_startup_sound().
Definition at line 252 of file sound.c.
References play_sound(), and sound_magic_event_name2num().
Referenced by ctwm_main().
Definition at line 288 of file sound.c.
References sound_load_list().
Definition at line 329 of file sound.c.
Referenced by set_sound_event_name().
Definition at line 311 of file sound.c.
References event_num_by_name(), PlaceX, set_sound_event(), and sound_magic_event_name2num().
Referenced by sound_load_list().
Definition at line 297 of file sound.c.
References hostname, HOSTNAME_LEN, PlaceX, and sound_fd.
Referenced by do_string_keyword().
Definition at line 84 of file sound.c.
References hostname, HOSTNAME_LEN, need_sound_init, NEVENTS, PlaceX, rp, and sound_fd.
Referenced by ctwm_main().
Definition at line 152 of file sound.c.
References PlaceX, rp, set_sound_event_name(), sound_clear_list(), sound_from_config, and trim_spaces().
Referenced by ctwm_main(), and reread_sounds().
Definition at line 58 of file sound.c.
References event_names_size(), magic_events, NMAGICEVENTS, and PlaceX.
Referenced by play_exit_sound(), play_startup_sound(), and set_sound_event_name().
Definition at line 268 of file sound.c.
References sound_from_config.
Definition at line 278 of file sound.c.
References sound_state.
|
static |
Definition at line 26 of file sound.c.
Referenced by m4_defs(), set_sound_host(), and sound_init().
Definition at line 51 of file sound.c.
Referenced by sound_magic_event_name2num().
|
static |
Definition at line 21 of file sound.c.
Referenced by play_sound(), and sound_init().
Definition at line 19 of file sound.c.
Referenced by do_string_string_keyword(), play_sound(), set_sound_event(), sound_clear_list(), sound_init(), and sound_load_list().
|
static |
Definition at line 23 of file sound.c.
Referenced by play_sound(), set_sound_host(), and sound_init().
|
static |
Definition at line 22 of file sound.c.
Referenced by sound_load_list(), and sound_set_from_config().
|
static |
Definition at line 24 of file sound.c.
Referenced by play_sound(), and toggle_sound().