X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=sound.h;h=fbd5755ba5b40f3f2d59addd9fc903998524250e;hb=bd945435f3f8850b0c799f452eaaf40c0ff75ff6;hp=f5ab1b7583df9b404211dea36da20aaccefd7d55;hpb=ab99ad92446a3043f71afa0a9878499e9360d877;p=xonotic%2Fdarkplaces.git diff --git a/sound.h b/sound.h index f5ab1b75..fbd5755b 100644 --- a/sound.h +++ b/sound.h @@ -60,12 +60,14 @@ void S_Terminate (void); void S_Startup (void); void S_Shutdown (void); +void S_Reload_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); @@ -75,11 +77,14 @@ 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); + +int S_GetSoundRate (void); #endif