X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sound.h;h=183b71e0607ecf777ac346e2c2bf68ead576d7fd;hp=b1e0cb094cecd7731dc8b945e3eed52d173228e1;hb=63049d016df231bb7b125024ed8a1d11a323a83d;hpb=fb468107b060a8807014662ed251ab6e82ec7f7a diff --git a/sound.h b/sound.h index b1e0cb09..183b71e0 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; // ==================================================================== @@ -65,8 +66,9 @@ 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); +sfx_t *S_PrecacheSound (const char *sample, qboolean complain, qboolean serversound); +void S_ClearUsed (void); +void S_PurgeUnused (void); qboolean S_IsSoundPrecached (const sfx_t *sfx); // S_StartSound returns the channel index, or -1 if an error occurred @@ -78,13 +80,15 @@ 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); +float S_GetChannelPosition (unsigned int ch_ind); void S_BlockSound (void); void S_UnblockSound (void); int S_GetSoundRate (void); +int S_GetSoundChannels (void); #endif