Nuclide
Software Development Kit for id Tech
sound.qc File Reference

Macros

#define SOUNDSHADER_MAX   512
 The max amount of soundDef entries. More...
 

Functions

void Sound_Shutdown (void)
 Called by CSQC_Shutdown() and in theory, somewhere on the server. More...
 
void SoundSource_Init (void)
 
void Sound_Init (void)
 Called by the client inside CSQC_Init(), and on the server inside init(). More...
 
bool Sound_PrecacheFile (string fileName)
 
int Sound_Precache (string shader)
 Force the precache of a soundDef file. More...
 
void Sound_Stop (entity target, float chan)
 Stops sounds on a given channel, on a target entity. More...
 
void Sound_Play (entity target, int chan, string shader)
 Play a soundDef on a given target entity. More...
 
void Sound_PlayAt (vector pos, string shader)
 Play a soundDef a a given location. More...
 
void Sound_PlayLocal (string shader)
 Client-side only: Play a sound locally, outside the game world. More...
 
int Sound_GetID (string defName)
 
void Sound_Update (entity target, int channel, int sample, float volume)
 Client-side only: Update the sound parameters on a given entity. More...
 
void Sound_DebugList (void)
 Called by listSoundDef. More...
 

Macro Definition Documentation

◆ SOUNDSHADER_MAX

#define SOUNDSHADER_MAX   512

The max amount of soundDef entries.

Can override this in your progs.src.

Function Documentation

◆ Sound_PrecacheFile()

bool Sound_PrecacheFile ( string  fileName)

◆ SoundSource_Init()

void SoundSource_Init ( void  )