]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_null.c
Removed redundant definitions in cd_linux.c
[xonotic/darkplaces.git] / snd_null.c
index f1948f476d045976969e11030094870b9ca4e592..b8627b9218961bf6aea6712f179f9d839fedec0b 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)
@@ -43,6 +44,10 @@ void S_AmbientOn (void)
 {
 }
 
+void S_Startup (void)
+{
+}
+
 void S_Shutdown (void)
 {
 }
@@ -67,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;
@@ -76,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)
 {
 }
 
@@ -126,11 +136,3 @@ int S_RawSamples_SampleRate(void)
        return 0;
 }
 
-
-void S_Open(void)
-{
-}
-
-void S_Close(void)
-{
-}