X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_null.c;h=3da10596c4638b1eb896c0e084cf2e9b2e66db36;hb=886e2b4d6406423c441197d2cbfe736458d2b26b;hp=0bd5157ed22ee50f5ce8a4efc09386110d84e9aa;hpb=a2445d85eccf4d0c5766f44f02cd04a600c4bad4;p=xonotic%2Fdarkplaces.git diff --git a/snd_null.c b/snd_null.c index 0bd5157e..3da10596 100755 --- a/snd_null.c +++ b/snd_null.c @@ -22,20 +22,27 @@ 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_mixahead = {CVAR_SAVE, "_snd_mixahead", "0.1", "how much sound to mix ahead of time"}; +cvar_t snd_swapstereo = {CVAR_SAVE, "snd_swapstereo", "0", "swaps left/right speakers for old ISA soundblaster cards"}; +cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"}; void S_Init (void) { Cvar_RegisterVariable(&bgmvolume); Cvar_RegisterVariable(&volume); Cvar_RegisterVariable(&snd_staticvolume); + Cvar_RegisterVariable(&_snd_mixahead); + Cvar_RegisterVariable(&snd_swapstereo); Cvar_RegisterVariable(&snd_initialized); } +void S_Terminate (void) +{ +} + void S_Startup (void) { } @@ -83,6 +90,16 @@ sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean lock) return NULL; } +qboolean S_IsSoundPrecached (const sfx_t *sfx) +{ + return false; +} + +sfx_t *S_FindName (const char *name) +{ + return NULL; +} + void S_Update(const matrix4x4_t *matrix) { }