X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=sound.h;h=14d1d0540c242eb92c570e2e5eaaf0e3e5574e4f;hb=b8d63f8b1a4a6d8cc880be5ff8ea83aa6fbba365;hp=b09d89dd7a876e82ab464228db3d7960860850d3;hpb=a2445d85eccf4d0c5766f44f02cd04a600c4bad4;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index b09d89dd..14d1d054 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);