]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_null.c
recalculate farclip immediately before rendering, instead of from the previous frame...
[xonotic/darkplaces.git] / snd_null.c
index 9b013896b6259cc5c90898e0b90adc98dfa113d2..68e0171a49eeea1471b48789ec3a8d3552706a3d 100755 (executable)
@@ -26,13 +26,14 @@ cvar_t bgmvolume = {CVAR_SAVE, "bgmvolume", "1"};
 cvar_t volume = {CVAR_SAVE, "volume", "0.7"};
 cvar_t snd_staticvolume = {CVAR_SAVE, "snd_staticvolume", "1"};
 
-qboolean snd_initialized = false;
+cvar_t snd_initialized = { CVAR_READONLY, "snd_initialized", "0"};
 
 void S_Init (void)
 {
        Cvar_RegisterVariable(&bgmvolume);
        Cvar_RegisterVariable(&volume);
        Cvar_RegisterVariable(&snd_staticvolume);
+       Cvar_RegisterVariable(&snd_initialized);
 }
 
 void S_AmbientOff (void)
@@ -81,10 +82,6 @@ sfx_t *S_PrecacheSound (char *sample, int complain)
        return NULL;
 }
 
-void S_ClearPrecache (void)
-{
-}
-
 void S_Update(vec3_t origin, vec3_t forward, vec3_t left, vec3_t up)
 {
 }
@@ -93,14 +90,6 @@ void S_StopAllSounds (qboolean clear)
 {
 }
 
-void S_BeginPrecaching (void)
-{
-}
-
-void S_EndPrecaching (void)
-{
-}
-
 void S_ExtraUpdate (void)
 {
 }