static unsigned int oldpaintedtime = 0;
static unsigned int extrasoundtime = 0;
static double snd_starttime = 0.0;
-qboolean snd_threaded = false;
-qboolean snd_usethreadedmixing = false;
+qbool snd_threaded = false;
+qbool snd_usethreadedmixing = false;
vec3_t listener_origin;
matrix4x4_t listener_basematrix;
// Linked list of known sfx
static sfx_t *known_sfx = NULL;
-static qboolean sound_spatialized = false;
+static qbool sound_spatialized = false;
-qboolean simsound = false;
+qbool simsound = false;
#ifdef CONFIG_VIDEO_CAPTURE
-static qboolean recording_sound = false;
+static qbool recording_sound = false;
#endif
int snd_blocked = 0;
// Functions
// ====================================================================
-void S_FreeSfx (sfx_t *sfx, qboolean force);
+void S_FreeSfx (sfx_t *sfx, qbool force);
static void S_Play_Common (cmd_state_t *cmd, float fvol, float attenuation)
{
S_FreeSfx
==================
*/
-void S_FreeSfx (sfx_t *sfx, qboolean force)
+void S_FreeSfx (sfx_t *sfx, qbool force)
{
unsigned int i;
S_PrecacheSound
==================
*/
-sfx_t *S_PrecacheSound (const char *name, qboolean complain, qboolean levelsound)
+sfx_t *S_PrecacheSound (const char *name, qbool complain, qbool levelsound)
{
sfx_t *sfx;
S_IsSoundPrecached
==================
*/
-qboolean S_IsSoundPrecached (const sfx_t *sfx)
+qbool S_IsSoundPrecached (const sfx_t *sfx)
{
return (sfx != NULL && sfx->fetcher != NULL) || (sfx == &changevolume_sfx);
}
=================
*/
extern cvar_t cl_gameplayfix_soundsmovewithentities;
-static void SND_Spatialize_WithSfx(channel_t *ch, qboolean isstatic, sfx_t *sfx)
+static void SND_Spatialize_WithSfx(channel_t *ch, qbool isstatic, sfx_t *sfx)
{
int i;
double f;
intensity = mastervol * f;
if (intensity > 0)
{
- qboolean occluded = false;
+ qbool occluded = false;
if (snd_spatialization_occlusion.integer)
{
if(snd_spatialization_occlusion.integer & 1)
ch->volume[i] = 0;
}
}
-static void SND_Spatialize(channel_t *ch, qboolean isstatic)
+static void SND_Spatialize(channel_t *ch, qbool isstatic)
{
sfx_t *sfx = ch->sfx;
SND_Spatialize_WithSfx(ch, isstatic, sfx);
// Start a sound effect
// =======================================================================
-static void S_PlaySfxOnChannel (sfx_t *sfx, channel_t *target_chan, unsigned int flags, vec3_t origin, float fvol, float attenuation, qboolean isstatic, int entnum, int entchannel, int startpos, float fspeed)
+static void S_PlaySfxOnChannel (sfx_t *sfx, channel_t *target_chan, unsigned int flags, vec3_t origin, float fvol, float attenuation, qbool isstatic, int entnum, int entchannel, int startpos, float fspeed)
{
if (!sfx)
{
return S_StartSound_StartPosition_Flags(entnum, entchannel, sfx, origin, fvol, attenuation, 0, CHANNELFLAG_NONE, 1.0f);
}
-void S_StopChannel (unsigned int channel_ind, qboolean lockmutex, qboolean freesfx)
+void S_StopChannel (unsigned int channel_ind, qbool lockmutex, qbool freesfx)
{
channel_t *ch;
sfx_t *sfx;
}
-qboolean S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qboolean value)
+qbool S_SetChannelFlag (unsigned int ch_ind, unsigned int flag, qbool value)
{
if (ch_ind >= total_channels)
return false;
}
-void S_PauseGameSounds (qboolean toggle)
+void S_PauseGameSounds (qbool toggle)
{
unsigned int i;
S_PaintAndSubmit();
}
-qboolean S_LocalSound (const char *sound)
+qbool S_LocalSound (const char *sound)
{
sfx_t *sfx;
int ch_ind;