]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_null.c
patched up some compiler warnings in incomplete code
[xonotic/darkplaces.git] / snd_null.c
index e699ac565313fec746773e8e85a0ae1bb1f1cec2..b8627b9218961bf6aea6712f179f9d839fedec0b 100755 (executable)
@@ -24,13 +24,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 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)
@@ -41,6 +44,10 @@ void S_AmbientOn (void)
 {
 }
 
+void S_Startup (void)
+{
+}
+
 void S_Shutdown (void)
 {
 }
@@ -65,6 +72,11 @@ void S_StopSound (int entnum, int entchannel)
 {
 }
 
+sfx_t *S_GetCached(const char *name)
+{
+       return NULL;
+}
+
 sfx_t *S_PrecacheSound (char *sample, int complain)
 {
        return NULL;
@@ -74,7 +86,7 @@ void S_ClearPrecache (void)
 {
 }
 
-void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up)
+void S_Update(vec3_t origin, vec3_t forward, vec3_t left, vec3_t up)
 {
 }
 
@@ -124,11 +136,3 @@ int S_RawSamples_SampleRate(void)
        return 0;
 }
 
-
-void S_Open(void)
-{
-}
-
-void S_Close(void)
-{
-}