X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sound.h;h=74f9ffe9b73e77274ab1ab99865c2dda8f2ae6e5;hb=beeb6e6ed5f07f96af93110fa6c8b6958b89224e;hp=f5ab1b7583df9b404211dea36da20aaccefd7d55;hpb=ab99ad92446a3043f71afa0a9878499e9360d877;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index f5ab1b75..74f9ffe9 100644 --- a/sound.h +++ b/sound.h @@ -66,6 +66,7 @@ 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); @@ -75,11 +76,13 @@ void S_StaticSound (sfx_t *sfx, vec3_t origin, float fvol, float attenuation); void S_StopSound (int entnum, int entchannel); void S_StopAllSounds (void); void S_PauseGameSounds (qboolean toggle); -void S_ClearBuffer (void); void S_StopChannel (unsigned int channel_ind); 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); + #endif