s_main.c File Reference

Main control for any streaming sound output device. More...

#include "s_local.h"
#include "s_main.h"
#include "s_music.h"
#include "s_sample.h"
#include "s_mix.h"
Include dependency graph for s_main.c:

Go to the source code of this file.

Defines

#define COMPARE_VERSION(major, minor, micro)

Functions

static void S_Restart_f (void)
 Restart the sound subsystem so it can pick up new parameters and flush all sounds.
void S_Stop (void)
 Stop all channels.
void S_Frame (void)
static void S_Play_f (void)
 Plays sound fx files via console.
static int S_CompleteSounds (const char *partial, const char **match)
void S_Init (void)
void S_Shutdown (void)

Variables

s_env_t s_env
cvar_tsnd_volume
cvar_tsnd_distance_scale
static cvar_tsnd_init
static cvar_tsnd_rate

Detailed Description

Main control for any streaming sound output device.

Definition in file s_main.c.


Define Documentation

#define COMPARE_VERSION ( major,
minor,
micro   ) 
Value:
(SDL_MIXER_MAJOR_VERSION > (major) || \
    (SDL_MIXER_MAJOR_VERSION == (major) && SDL_MIXER_MINOR_VERSION > (minor)) || \
    (SDL_MIXER_MAJOR_VERSION == (major) && SDL_MIXER_MINOR_VERSION == (minor) && \
     SDL_MIXER_PATCHLEVEL >= (micro)))

Definition at line 32 of file s_main.c.


Function Documentation

static int S_CompleteSounds ( const char *  partial,
const char **  match 
) [static]
void S_Frame ( void   ) 
void S_Init ( void   ) 
static void S_Play_f ( void   )  [static]

Plays sound fx files via console.

Definition at line 115 of file s_main.c.

References Cmd_Argc(), Cmd_Argv(), Com_Printf(), i, S_StartLocalSample(), and SND_VOLUME_DEFAULT.

Referenced by S_Init().

static void S_Restart_f ( void   )  [static]

Restart the sound subsystem so it can pick up new parameters and flush all sounds.

See also:
S_Shutdown
S_Init

Definition at line 136 of file s_main.c.

References Com_Printf(), S_Init(), S_LoadSamples(), and S_Shutdown().

Referenced by S_Frame(), and S_Init().

void S_Shutdown ( void   ) 
void S_Stop ( void   ) 

Stop all channels.

Definition at line 50 of file s_main.c.

References s_env_s::channels, and s_env_s::initialized.

Referenced by CL_Disconnect(), and S_Shutdown().


Variable Documentation

Definition at line 41 of file s_main.c.

Referenced by S_SpatializeChannel().

cvar_t* snd_init [static]

Definition at line 42 of file s_main.c.

cvar_t* snd_rate [static]

Definition at line 43 of file s_main.c.

Definition at line 40 of file s_main.c.

Referenced by S_PlaySample().


Generated by  doxygen 1.6.2