]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_null.c
Fixed the WAV file loading code (loopstart was always 0 if the sound was looped)
[xonotic/darkplaces.git] / snd_null.c
index 9b013896b6259cc5c90898e0b90adc98dfa113d2..a1c458697e0a53875d8841bde67980aec0039979 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)
@@ -55,6 +56,14 @@ void S_TouchSound (char *sample)
 {
 }
 
+void S_ClearUsed (void)
+{
+}
+
+void S_PurgeUnused (void)
+{
+}
+
 void S_ClearBuffer (void)
 {
 }
@@ -81,10 +90,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 +98,6 @@ void S_StopAllSounds (qboolean clear)
 {
 }
 
-void S_BeginPrecaching (void)
-{
-}
-
-void S_EndPrecaching (void)
-{
-}
-
 void S_ExtraUpdate (void)
 {
 }