X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=snd_null.c;h=35592de9f2829541ab0cc63d4627277303123020;hb=f3e79d752a76a9d6329759a83ec9800a5e4cc92b;hp=546b0e8af5a54db42d8f9ee1149ac064ce9bd098;hpb=b82d346b06f2dbd3d4fff3ef6b7ad986739d6cf7;p=xonotic%2Fdarkplaces.git diff --git a/snd_null.c b/snd_null.c index 546b0e8a..35592de9 100755 --- a/snd_null.c +++ b/snd_null.c @@ -24,32 +24,35 @@ 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) +void S_Startup (void) { } -void S_AmbientOn (void) +void S_Shutdown (void) { } -void S_Shutdown (void) +void S_TouchSound (const char *sample, qboolean stdpath) { } -void S_TouchSound (char *sample) +void S_ClearUsed (void) { } -void S_ClearBuffer (void) +void S_PurgeUnused (void) { } @@ -57,7 +60,20 @@ void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) { } -void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) +int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) +{ + return -1; +} + +void S_StopChannel (unsigned int channel_ind) +{ +} + +void S_PauseChannel (unsigned int channel_ind, qboolean toggle) +{ +} + +void S_LoopChannel (unsigned int channel_ind, qboolean toggle) { } @@ -65,28 +81,33 @@ void S_StopSound (int entnum, int entchannel) { } -sfx_t *S_PrecacheSound (char *sample, int complain) +void S_PauseGameSounds (void) { - return NULL; } -void S_ClearPrecache (void) +void S_ResumeGameSounds (void) { } -void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up) +void S_SetChannelVolume (unsigned int ch_ind, float fvol) { } -void S_StopAllSounds (qboolean clear) +sfx_t *S_GetCached(const char *name, qboolean stdpath) +{ + return NULL; +} + +sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean stdpath) { + 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) { } @@ -94,7 +115,7 @@ void S_ExtraUpdate (void) { } -void S_LocalSound (char *s) +void S_LocalSound (const char *s, qboolean stdpath) { } @@ -123,3 +144,4 @@ int S_RawSamples_SampleRate(void) { return 0; } +