Crossfire Client, Trunk
R20330
|
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"
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] |
Initialize various parts of the sound server.
Definition in file init.c.
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().
|
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().
Sound_Info sounds[MAX_SOUNDS] |
Definition at line 29 of file init.c.
Referenced by play_sound(), and sound_to_soundnum().