Xonotic
all.qh File Reference
#include "sound.qh"
#include "all.inc"
#include "all.qc"
+ Include dependency graph for all.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SND(id)   Sound_fixpath(SND_##id)
 
#define SOUND(name, path)
 

Functions

 PRECACHE (Sounds)
 
 SOUND (Null, "misc/null")
 

Macro Definition Documentation

◆ SND

◆ SOUND

#define SOUND (   name,
  path 
)
Value:
string SND_##name##_get() { return path; } \
REGISTER(Sounds, SND, name, m_id, NEW(Sound, SND_##name##_get))
#define SND(id)
Definition: all.qh:35
#define NEW(cname,...)
Definition: oo.qh:105
int m_id
Definition: effect.qh:19
Definition: sound.qh:119

Definition at line 30 of file all.qh.

Referenced by PRECACHE().

Function Documentation

◆ PRECACHE()

PRECACHE ( Sounds  )

Definition at line 37 of file all.qh.

References FOREACH, REGISTRY_DEFINE_GET, and SOUND.

37  {
38  FOREACH(Sounds, true, it.sound_precache(it));
39 }
#define FOREACH(list, cond, body)
Definition: iter.qh:19

◆ SOUND()

SOUND ( Null  ,
"misc/null"   
)