Crossfire Client, Branch
R11627
|
This file contains the sound support for the GTK V1 client. More...
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <signal.h>
#include <errno.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) |
static void | signal_pipe (int i) |
void | Sound2Cmd (unsigned char *data, int len) |
void | SoundCmd (unsigned char *data, int len) |
Variables | |
const char *const | rcsid_gtk_sound_c = "$Id: sound.c 9719 2008-08-04 18:57:47Z ryo_saeba $" |
static FILE * | sound_pipe = NULL |
static ChildProcess * | sound_process |
This file contains the sound support for the GTK V1 client.
It does not actually play sounds, but rather tries to run cfsndserver, which is responsible for playing sounds.
Definition in file sound.c.
int init_sounds | ( | void | ) |
static void play_sound | ( | int | soundnum, |
int | soundtype, | ||
int | x, | ||
int | y | ||
) | [static] |
Definition at line 112 of file sound.c.
References CONFIG_SOUND, LOG(), LOG_ERROR, sound_pipe, and use_config.
Referenced by SoundCmd().
static void signal_pipe | ( | int | i | ) | [static] |
Definition at line 48 of file sound.c.
Referenced by init_sounds().
const char* const rcsid_gtk_sound_c = "$Id: sound.c 9719 2008-08-04 18:57:47Z ryo_saeba $" |
FILE* sound_pipe = NULL [static] |
Definition at line 52 of file sound.c.
Referenced by init_sounds(), and play_sound().
ChildProcess* sound_process [static] |