X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=sound.h;h=24961705b48d45b76bcdd8b0531609cb774e6d13;hb=aed8b84afc34596c6ec9e4dd35ada467539fbd8c;hp=af734196cc8fcddfab8aee88a4aa82198a34c3fc;hpb=63194da5789fa949671e4a3cb7309ea0b6b15b68;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index af734196..24961705 100644 --- a/sound.h +++ b/sound.h @@ -49,6 +49,7 @@ extern cvar_t bgmvolume; extern cvar_t volume; extern cvar_t snd_initialized; extern cvar_t snd_staticvolume; +extern cvar_t snd_mutewhenidle; // ==================================================================== @@ -60,12 +61,14 @@ void S_Terminate (void); void S_Startup (void); void S_Shutdown (void); +void S_UnloadAllSounds_f (void); void S_Update(const matrix4x4_t *listenermatrix); void S_ExtraUpdate (void); sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean lock); void S_ServerSounds (char serversound [][MAX_QPATH], unsigned int numsounds); +qboolean S_IsSoundPrecached (const sfx_t *sfx); // S_StartSound returns the channel index, or -1 if an error occurred int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation); @@ -76,9 +79,13 @@ void S_StopSound (int entnum, int entchannel); void S_StopAllSounds (void); void S_PauseGameSounds (qboolean toggle); -void S_StopChannel (unsigned int channel_ind); +void S_StopChannel (unsigned int channel_ind, qboolean lockmutex); qboolean S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qboolean value); void S_SetChannelVolume (unsigned int ch_ind, float fvol); +void S_BlockSound (void); +void S_UnblockSound (void); + +int S_GetSoundRate (void); #endif