X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sound.h;h=74f9ffe9b73e77274ab1ab99865c2dda8f2ae6e5;hb=da29a8beeb35293e2fd38b51883c91b5cf4cf4ad;hp=b09d89dd7a876e82ab464228db3d7960860850d3;hpb=a2445d85eccf4d0c5766f44f02cd04a600c4bad4;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index b09d89dd..74f9ffe9 100644 --- a/sound.h +++ b/sound.h @@ -56,6 +56,8 @@ extern cvar_t snd_staticvolume; // ==================================================================== void S_Init (void); +void S_Terminate (void); + void S_Startup (void); void S_Shutdown (void); @@ -64,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); @@ -78,5 +81,8 @@ 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