Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
Sound Class Reference
Inheritance diagram for Sound:
Collaboration diagram for Sound:

Public Member Functions

 Sound (string() path)
 ATTRIB (Sound, sound_str, string())
 ATTRIB (Sound, sound_str_, string)
virtual void sound_precache ()

Public Attributes

int m_id = 0

Detailed Description

Definition at line 119 of file sound.qh.

Constructor & Destructor Documentation

◆ Sound()

Sound::Sound ( string() path)
inline

Definition at line 123 of file sound.qh.

124 {
126 this.sound_str = path;
127 }
Sound(string() path)
Definition sound.qh:123
#define CONSTRUCT(cname,...)
Definition oo.qh:123

References Sound(), CONSTRUCT, and CONSTRUCTOR.

Referenced by Sound(), ATTRIB(), ATTRIB(), and sound_precache().

Member Function Documentation

◆ ATTRIB() [1/2]

Sound::ATTRIB ( Sound ,
sound_str ,
string()  )

References Sound(), and ATTRIB().

Referenced by ATTRIB(), and ATTRIB().

◆ ATTRIB() [2/2]

Sound::ATTRIB ( Sound ,
sound_str_ ,
string  )

References Sound(), and ATTRIB().

◆ sound_precache()

virtual void Sound::sound_precache ( )
inlinevirtual

Definition at line 128 of file sound.qh.

129 {
130 TC(Sound, this);
131 string s = _Sound_fixpath(this.sound_str());
132 if (!s) return;
133 //profile(sprintf("precache_sound(\"%s\")", s));
135 strcpy(this.sound_str_, s);
136 }
#define TC(T, sym)
Definition _all.inc:82
string precache_sound(string sample)
string _Sound_fixpath(string base)
Definition sound.qh:94
#define strcpy(this, s)
Definition string.qh:52

References Sound(), _Sound_fixpath(), precache_sound(), sound_precache(), strcpy, and TC.

Referenced by sound_precache().

Member Data Documentation

◆ m_id

int Sound::m_id = 0

Definition at line 120 of file sound.qh.


The documentation for this class was generated from the following file: