DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
snd_null.c File Reference
#include "quakedef.h"
+ Include dependency graph for snd_null.c:

Go to the source code of this file.

Functions

void S_ClearUsed (void)
 
sfx_t * S_FindName (const char *name)
 
float S_GetChannelPosition (unsigned int ch_ind)
 
float S_GetEntChannelPosition (int entnum, int entchannel)
 
int S_GetSoundChannels (void)
 
int S_GetSoundRate (void)
 
void S_Init (void)
 
qbool S_IsSoundPrecached (const sfx_t *sfx)
 
qbool S_LocalSound (const char *s)
 
qbool S_LocalSoundEx (const char *s, int chan, float fvol)
 
void S_PauseGameSounds (qbool toggle)
 
sfx_t * S_PrecacheSound (const char *sample, qbool complain, qbool levelsound)
 
void S_PurgeUnused (void)
 
qbool S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qbool value)
 
void S_SetChannelVolume (unsigned int ch_ind, float fvol)
 
void S_Shutdown (void)
 
float S_SoundLength (const char *name)
 
int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation)
 S_StartSound returns the channel index, or -1 if an error occurred.
 
int S_StartSound_StartPosition_Flags (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation, float startposition, int flags, float fspeed)
 
void S_Startup (void)
 
void S_StaticSound (sfx_t *sfx, vec3_t origin, float fvol, float attenuation)
 
void S_StopAllSounds (void)
 
void S_StopChannel (unsigned int channel_ind, qbool lockmutex, qbool freesfx)
 
void S_StopSound (int entnum, int entchannel)
 
void S_Terminate (void)
 
void S_UnloadAllSounds_f (cmd_state_t *cmd)
 
void S_Update (const matrix4x4_t *matrix)
 
void SndSys_SendKeyEvents (void)
 if the sound system can generate events, send them
 

Variables

cvar_t bgmvolume = {CF_CLIENT | CF_ARCHIVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"}
 
cvar_t snd_initialized = {CF_CLIENT | CF_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"}
 

Function Documentation

◆ S_ClearUsed()

void S_ClearUsed ( void )

Definition at line 44 of file snd_null.c.

45{
46}

◆ S_FindName()

sfx_t * S_FindName ( const char * name)

Definition at line 107 of file snd_null.c.

108{
109 return NULL;
110}
#define NULL
Definition qtypes.h:12

References NULL.

◆ S_GetChannelPosition()

float S_GetChannelPosition ( unsigned int ch_ind)

Definition at line 140 of file snd_null.c.

141{
142 return -1;
143}

◆ S_GetEntChannelPosition()

float S_GetEntChannelPosition ( int entnum,
int entchannel )

Definition at line 145 of file snd_null.c.

146{
147 return -1;
148}

◆ S_GetSoundChannels()

int S_GetSoundChannels ( void )

Definition at line 135 of file snd_null.c.

136{
137 return 0;
138}

◆ S_GetSoundRate()

int S_GetSoundRate ( void )

Definition at line 130 of file snd_null.c.

131{
132 return 0;
133}

◆ S_Init()

void S_Init ( void )

Definition at line 28 of file snd_null.c.

29{
30}

◆ S_IsSoundPrecached()

qbool S_IsSoundPrecached ( const sfx_t * sfx)

Definition at line 98 of file snd_null.c.

99{
100 return false;
101}

◆ S_LocalSound()

qbool S_LocalSound ( const char * s)

Definition at line 120 of file snd_null.c.

121{
122 return false;
123}

◆ S_LocalSoundEx()

qbool S_LocalSoundEx ( const char * s,
int chan,
float fvol )

Definition at line 125 of file snd_null.c.

126{
127 return false;
128}

◆ S_PauseGameSounds()

void S_PauseGameSounds ( qbool toggle)

Definition at line 80 of file snd_null.c.

81{
82}

◆ S_PrecacheSound()

sfx_t * S_PrecacheSound ( const char * sample,
qbool complain,
qbool levelsound )

Definition at line 88 of file snd_null.c.

89{
90 return NULL;
91}

References NULL.

◆ S_PurgeUnused()

void S_PurgeUnused ( void )

Definition at line 48 of file snd_null.c.

49{
50}

◆ S_SetChannelFlag()

qbool S_SetChannelFlag ( unsigned int ch_ind,
unsigned int flag,
qbool value )

Definition at line 71 of file snd_null.c.

72{
73 return false;
74}

◆ S_SetChannelVolume()

void S_SetChannelVolume ( unsigned int ch_ind,
float fvol )

Definition at line 84 of file snd_null.c.

85{
86}

◆ S_Shutdown()

void S_Shutdown ( void )

Definition at line 40 of file snd_null.c.

41{
42}

◆ S_SoundLength()

float S_SoundLength ( const char * name)

Definition at line 93 of file snd_null.c.

94{
95 return -1;
96}

◆ S_StartSound()

int S_StartSound ( int entnum,
int entchannel,
sfx_t * sfx,
vec3_t origin,
float fvol,
float attenuation )

S_StartSound returns the channel index, or -1 if an error occurred.

Definition at line 57 of file snd_null.c.

58{
59 return -1;
60}

◆ S_StartSound_StartPosition_Flags()

int S_StartSound_StartPosition_Flags ( int entnum,
int entchannel,
sfx_t * sfx,
vec3_t origin,
float fvol,
float attenuation,
float startposition,
int flags,
float fspeed )

Definition at line 62 of file snd_null.c.

63{
64 return -1;
65}

◆ S_Startup()

void S_Startup ( void )

Definition at line 36 of file snd_null.c.

37{
38}

◆ S_StaticSound()

void S_StaticSound ( sfx_t * sfx,
vec3_t origin,
float fvol,
float attenuation )

Definition at line 53 of file snd_null.c.

54{
55}

◆ S_StopAllSounds()

void S_StopAllSounds ( void )

Definition at line 116 of file snd_null.c.

117{
118}

◆ S_StopChannel()

void S_StopChannel ( unsigned int channel_ind,
qbool lockmutex,
qbool freesfx )

Definition at line 67 of file snd_null.c.

68{
69}

◆ S_StopSound()

void S_StopSound ( int entnum,
int entchannel )

Definition at line 76 of file snd_null.c.

77{
78}

◆ S_Terminate()

void S_Terminate ( void )

Definition at line 32 of file snd_null.c.

33{
34}

◆ S_UnloadAllSounds_f()

void S_UnloadAllSounds_f ( cmd_state_t * cmd)

Definition at line 103 of file snd_null.c.

104{
105}

◆ S_Update()

void S_Update ( const matrix4x4_t * matrix)

Definition at line 112 of file snd_null.c.

113{
114}

◆ SndSys_SendKeyEvents()

void SndSys_SendKeyEvents ( void )

if the sound system can generate events, send them

Definition at line 150 of file snd_null.c.

151{
152}

Variable Documentation

◆ bgmvolume

cvar_t bgmvolume = {CF_CLIENT | CF_ARCHIVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"}

Definition at line 25 of file snd_null.c.

25{CF_CLIENT | CF_ARCHIVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"};
#define CF_CLIENT
cvar/command that only the client can change/execute
Definition cmd.h:48
#define CF_ARCHIVE
cvar should have its set value saved to config.cfg and persist across sessions
Definition cmd.h:53

◆ snd_initialized

cvar_t snd_initialized = {CF_CLIENT | CF_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"}

Definition at line 26 of file snd_null.c.

26{CF_CLIENT | CF_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"};
#define CF_READONLY
cvar cannot be changed from the console or the command buffer, and is considered CF_PERSISTENT
Definition cmd.h:54