emit_sound() constants
Signature
#define CHAN_AUTO 0#define CHAN_WEAPON 1#define CHAN_VOICE 2#define CHAN_ITEM 3#define CHAN_BODY 4#define CHAN_STREAM 5 /* allocate stream channel from the static or dynamic area */#define CHAN_STATIC 6 /* allocate channel from the static area */#define CHAN_NETWORKVOICE_BASE 7 /* voice data coming across the network */#define CHAN_NETWORKVOICE_END 500 /* network voice data reserves slots (CHAN_NETWORKVOICE_BASE through CHAN_NETWORKVOICE_END). */
Description
Channels
Signature
#define ATTN_NONE 0.00#define ATTN_NORM 0.80#define ATTN_IDLE 2.00#define ATTN_STATIC 1.25
Description
Attenuation values
Signature
#define PITCH_NORM 100 /* non-pitch shifted */#define PITCH_LOW 95 /* other values are possible - 0-255, where 255 is very high */#define PITCH_HIGH 120
Description
Pitch values
Signature
#define VOL_NORM 1.0
Description
Volume values
Signature
#define SND_SPAWNING (1<<8) // we're spawing, used in some cases for ambients#define SND_STOP (1<<5) // stop sound#define SND_CHANGE_VOL (1<<6) // change sound vol#define SND_CHANGE_PITCH (1<<7) // change sound pitch
Description
Sound behavior constants