X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=snd_null.c;h=df7463fc6ac8b1b30367542431bb073004dd7002;hp=df43df4f200bf9fd250eda56f6f3cf3ec36b0ed4;hb=e93385631fb31028b8879b4e77b21d5ad95969c8;hpb=088a68a8be2d6b426f4d2046a3f02c14466edcc9 diff --git a/snd_null.c b/snd_null.c index df43df4f..df7463fc 100755 --- a/snd_null.c +++ b/snd_null.c @@ -22,11 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" -cvar_t bgmvolume = {CVAR_SAVE, "bgmvolume", "1"}; -cvar_t volume = {CVAR_SAVE, "volume", "0.7"}; -cvar_t snd_staticvolume = {CVAR_SAVE, "snd_staticvolume", "1"}; - -cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0"}; +cvar_t bgmvolume = {CVAR_SAVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"}; +cvar_t volume = {CVAR_SAVE, "volume", "0.7", "volume of sound effects"}; +cvar_t snd_staticvolume = {CVAR_SAVE, "snd_staticvolume", "1", "volume of ambient sound effects (such as swampy sounds at the start of e1m2)"}; +cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"}; void S_Init (void) { @@ -36,31 +35,27 @@ void S_Init (void) Cvar_RegisterVariable(&snd_initialized); } -void S_Startup (void) -{ -} - -void S_Shutdown (void) +void S_Terminate (void) { } -void S_TouchSound (const char *sample, qboolean stdpath) +void S_Startup (void) { } -void S_ClearUsed (void) +void S_Shutdown (void) { } -void S_PurgeUnused (void) +void S_ServerSounds (char serversound [][MAX_QPATH], unsigned int numsounds) { } -void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) +void S_StaticSound (sfx_t *sfx, vec3_t origin, float fvol, float attenuation) { } -int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) +int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) { return -1; } @@ -69,36 +64,38 @@ void S_StopChannel (unsigned int channel_ind) { } -void S_PauseChannel (unsigned int channel_ind, qboolean toggle) +qboolean S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qboolean value) { + return false; } -void S_LoopChannel (unsigned int channel_ind, qboolean toggle) +void S_StopSound (int entnum, int entchannel) { } -void S_StopSound (int entnum, int entchannel) +void S_PauseGameSounds (qboolean toggle) { } -void S_PauseGameSounds (void) +void S_SetChannelVolume (unsigned int ch_ind, float fvol) { } -void S_ResumeGameSounds (void) +sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean lock) { + return NULL; } -void S_SetChannelVolume (unsigned int ch_ind, float fvol) +qboolean S_IsSoundPrecached (const sfx_t *sfx) { + return false; } -sfx_t *S_GetCached(const char *name, qboolean stdpath) +void S_UnloadAllSounds_f (void) { - return NULL; } -sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean stdpath) +sfx_t *S_FindName (const char *name) { return NULL; } @@ -107,7 +104,7 @@ void S_Update(const matrix4x4_t *matrix) { } -void S_StopAllSounds (qboolean clear) +void S_StopAllSounds (void) { } @@ -115,6 +112,20 @@ void S_ExtraUpdate (void) { } -void S_LocalSound (const char *s, qboolean stdpath) +qboolean S_LocalSound (const char *s) +{ + return false; +} + +void S_BlockSound (void) +{ +} + +void S_UnblockSound (void) +{ +} + +int S_GetSoundRate(void) { + return 0; }