Crossfire Client, Trunk  R20330
Functions | Variables
init.c File Reference

Initialize various parts of the sound server. More...

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "client.h"
#include "common.h"
#include "sndproto.h"
Include dependency graph for init.c:

Go to the source code of this file.

Functions

int init ()
 Initialize sound server. More...
 
static void init_sounds ()
 Load sound definitions from a file. More...
 

Variables

Sound_Info sounds [MAX_SOUNDS]
 

Detailed Description

Initialize various parts of the sound server.

Definition in file init.c.

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:

static void init_sounds ( void  )
static

Load sound definitions from a file.

Definition at line 34 of file init.c.

References Sound_Info::filename, MAX_SOUNDS, Sound_Info::symbolic, and Sound_Info::volume.

Referenced by init().

Here is the caller graph for this function:

Variable Documentation

Definition at line 29 of file init.c.

Referenced by play_sound(), and sound_to_soundnum().