Crossfire Client, Trunk  R20330
Functions
sndproto.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int init ()
 Initialize sound server. More...
 
void sdl_mixer_server ()
 Implement the SDL_mixer sound server. More...
 
int sound_to_soundnum (const char *name, guint8 type)
 Convert a sound name to a sound number to help with the transition of the sound server from sound support to sound2 capability. More...
 
int StdinCmd (char *data, int len)
 
int type_to_soundtype (guint8 type)
 Convert a legacy sound type to the sound2 equivalent. More...
 

Function Documentation

int init ( )

Initialize sound server.

Initialize resource paths, load sound definitions, and ready the sound subsystem.

Returns
Zero on success, anything else on failure.

Definition at line 94 of file init.c.

References CLIENT_SOUNDS_PATH, init_audio(), init_sounds(), and MAXSOCKBUF.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void sdl_mixer_server ( )

Implement the SDL_mixer sound server.

Definition at line 375 of file cfsndserv.c.

References cleanup(), and parse_input().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int sound_to_soundnum ( const char *  name,
guint8  type 
)

Convert a sound name to a sound number to help with the transition of the sound server from sound support to sound2 capability.

This is not an end solution, but one that gets the sound server working a little bit until a better one can be implemented.

Definition at line 31 of file parser.c.

References MAX_SOUNDS, and sounds.

Referenced by parse_input().

Here is the caller graph for this function:

int StdinCmd ( char *  data,
int  len 
)
int type_to_soundtype ( guint8  type)

Convert a legacy sound type to the sound2 equivalent.

This is intended to help ease the transition from old sound to sound2 capability.

Definition at line 52 of file parser.c.

Referenced by parse_input().

Here is the caller graph for this function: