X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_null.c;h=6eb6b94c4e96f8d8ffd1b51c68fd2c12316c3ea4;hb=e5c9500045324334c9b3a03f7b7e9e80957857b7;hp=35592de9f2829541ab0cc63d4627277303123020;hpb=f3e79d752a76a9d6329759a83ec9800a5e4cc92b;p=xonotic%2Fdarkplaces.git diff --git a/snd_null.c b/snd_null.c index 35592de9..6eb6b94c 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,23 +64,16 @@ void S_StopChannel (unsigned int channel_ind) { } -void S_PauseChannel (unsigned int channel_ind, qboolean toggle) -{ -} - -void S_LoopChannel (unsigned int channel_ind, qboolean toggle) +qboolean S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qboolean value) { + return false; } void S_StopSound (int entnum, int entchannel) { } -void S_PauseGameSounds (void) -{ -} - -void S_ResumeGameSounds (void) +void S_PauseGameSounds (qboolean toggle) { } @@ -93,55 +81,51 @@ void S_SetChannelVolume (unsigned int ch_ind, float fvol) { } -sfx_t *S_GetCached(const char *name, qboolean stdpath) +sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean lock) { return NULL; } -sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean stdpath) +qboolean S_IsSoundPrecached (const sfx_t *sfx) { - return NULL; + return false; } -void S_Update(vec3_t origin, vec3_t forward, vec3_t left, vec3_t up) +void S_Reload_f (void) { } -void S_StopAllSounds (qboolean clear) -{ -} - -void S_ExtraUpdate (void) +sfx_t *S_FindName (const char *name) { + return NULL; } -void S_LocalSound (const char *s, qboolean stdpath) +void S_Update(const matrix4x4_t *matrix) { } -void S_RawSamples_Enqueue(short *samples, unsigned int length) +void S_StopAllSounds (void) { } -void S_RawSamples_Dequeue(int *samples, unsigned int length) +void S_ExtraUpdate (void) { } -void S_RawSamples_ClearQueue(void) +qboolean S_LocalSound (const char *s) { + return false; } -int S_RawSamples_QueueWantsMore(void) +void S_BlockSound (void) { - return 0; } -void S_ResampleBuffer16Stereo(short *input, int inputlength, short *output, int outputlength) +void S_UnblockSound (void) { } -int S_RawSamples_SampleRate(void) +int S_GetSoundRate(void) { return 0; } -