X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_null.c;h=a1c458697e0a53875d8841bde67980aec0039979;hb=6c37bacbd37c01453733ebf324f986c2c913eb4a;hp=586b77692102a3f9388e70b850e12e3737dedfaa;hpb=af4d8d7892ace10b13321577a55dc0630e315129;p=xonotic%2Fdarkplaces.git diff --git a/snd_null.c b/snd_null.c index 586b7769..a1c45869 100755 --- a/snd_null.c +++ b/snd_null.c @@ -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,44 +56,45 @@ void S_TouchSound (char *sample) { } -void S_ClearBuffer (void) +void S_ClearUsed (void) { } -void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) +void S_PurgeUnused (void) { } -void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) +void S_ClearBuffer (void) { } -void S_StopSound (int entnum, int entchannel) +void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) { } -sfx_t *S_PrecacheSound (char *sample, int complain) +void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) { - return NULL; } -void S_ClearPrecache (void) +void S_StopSound (int entnum, int entchannel) { } -void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up) +sfx_t *S_GetCached(const char *name) { + return NULL; } -void S_StopAllSounds (qboolean clear) +sfx_t *S_PrecacheSound (char *sample, int complain) { + return NULL; } -void S_BeginPrecaching (void) +void S_Update(vec3_t origin, vec3_t forward, vec3_t left, vec3_t up) { } -void S_EndPrecaching (void) +void S_StopAllSounds (qboolean clear) { }