#define DEFAULT_SOUND_PACKET_ATTENUATION 1.0
// Channel flags
-#define CHANNELFLAG_NONE 0
-#define CHANNELFLAG_FORCELOOP (1 << 0) // force looping even if the sound is not looped
-#define CHANNELFLAG_LOCALSOUND (1 << 1) // INTERNAL USE. Not settable by S_SetChannelFlag
-#define CHANNELFLAG_PAUSED (1 << 2)
-#define CHANNELFLAG_FULLVOLUME (1 << 3) // isn't affected by the general volume
-
+// These channel flags can be used for sound() builtins, with SOUNDFLAG_* names
+#define CHANNELFLAG_NONE 0
+#define CHANNELFLAG_RELIABLE (1 << 0) // send as reliable message (only used on server)
+#define CHANNELFLAG_FORCELOOP (1 << 1) // force looping even if the sound is not looped
+#define CHANNELFLAG_LOCALSOUND (1 << 2) // INTERNAL USE. Not settable by S_SetChannelFlag
+#define CHANNELFLAG_PAUSED (1 << 3) // pause status
+#define CHANNELFLAG_FULLVOLUME (1 << 4) // isn't affected by the general volume
// ====================================================================
// Types and variables
void S_ClearUsed (void);
void S_PurgeUnused (void);
qboolean S_IsSoundPrecached (const sfx_t *sfx);
-
-// for sound() builtins
-#define CHANFLAG_RELIABLE 1
+sfx_t *S_FindName(const char *name);
// these define the "engine" channel namespace
#define CHAN_MIN_AUTO -128