Crossfire Client, Trunk  R20330
Functions
parser.c File Reference
#include "client.h"
#include <ctype.h>
#include "common.h"
#include "sndproto.h"
Include dependency graph for parser.c:

Go to the source code of this file.

Functions

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 type_to_soundtype (guint8 type)
 Convert a legacy sound type to the sound2 equivalent. More...
 

Function Documentation

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 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: