Crossfire Client, Trunk
R20330
|
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... | |
int init | ( | ) |
Initialize sound server.
Initialize resource paths, load sound definitions, and ready the sound subsystem.
Definition at line 94 of file init.c.
References CLIENT_SOUNDS_PATH, init_audio(), init_sounds(), and MAXSOCKBUF.
Referenced by main().
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().
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().
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().