Crossfire Client, Branches
R11627
|
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <signal.h>
#include <client-types.h>
#include "client.h"
Go to the source code of this file.
Functions | |
int | init_sounds (void) |
void | MusicCmd (const char *data, int len) |
static void | play_sound (int soundnum, int soundtype, int x, int y) |
void | signal_pipe (int i) |
void | Sound2Cmd (unsigned char *data, int len) |
void | SoundCmd (unsigned char *data, int len) |
Variables | |
int | nosound =0 |
const char * | rcsid_x11_sound_c |
FILE * | sound_pipe |
ChildProcess * | sound_process |
Supports sound for the x11 client. This is a very lightweight file. Basically, it just runs the cfsndserv program and sends the writes to it.
Definition in file sound.c.
int init_sounds | ( | void | ) |
Opens the audio device, and reads relevant configuration files.
Definition at line 58 of file sound.c.
References CHILD_STDERR, CHILD_STDIN, CHILD_STDOUT, CONFIG_SOUND, LOG(), LOG_ERROR, LOG_INFO, logChildPipe(), MAX_BUF, raiseChild(), signal_pipe(), sound_pipe, sound_server, ChildProcess::tube, and want_config.
Referenced by applyconfig(), main(), and read_config_window().
void MusicCmd | ( | const char * | data, |
int | len | ||
) |
Definition at line 173 of file sound.c.
References LOG(), and LOG_WARNING.
|
static |
Definition at line 86 of file sound.c.
References nosound, and sound_pipe.
Referenced by SoundCmd().
void signal_pipe | ( | int | i | ) |
Definition at line 45 of file sound.c.
Referenced by init_sounds().
void Sound2Cmd | ( | unsigned char * | data, |
int | len | ||
) |
Definition at line 123 of file sound.c.
References LOG(), LOG_WARNING, and name.
void SoundCmd | ( | unsigned char * | data, |
int | len | ||
) |
?
data | |
len |
Definition at line 103 of file sound.c.
References GetShort_String(), LOG(), LOG_WARNING, and play_sound().
Referenced by main().
int nosound =0 |
Definition at line 40 of file sound.c.
Referenced by play_sound().
const char* rcsid_x11_sound_c |
ChildProcess* sound_process |