Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Topics
Classes
Loading...
Searching...
No Matches
SoundDict.h
1
/*
2
* Copyright (c) 2025 Vera Visions LLC.
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
18
typedef
enumflags
19
{
20
SNDFL_LOOPING,
21
SNDFL_NODUPS,
22
SNDFL_GLOBAL,
23
SNDFL_NOREVERB,
24
SNDFL_OMNI,
25
SNDFL_PRIVATE,
26
SNDFL_STEP,
27
SNDFL_FOLLOW,
28
SNDFL_ALERTS
29
} soundFlag_t;
30
35
class
36
ncSoundDict
:
ncDict
37
{
38
public
:
39
void
ncSoundDict
(
void
);
40
41
private
:
42
float
dist_min;
43
float
dist_max;
44
float
offset;
45
float
pitch_min;
46
float
pitch_max;
47
float
shakes;
48
float
volume;
49
soundFlag_t flags;
50
int
playc;
51
int
sample_count;
52
string
samples;
53
string
name;
54
string
distshader;
55
float
pointparticle;
56
};
57
58
void
59
ncSoundDict::ncSoundDict
(
void
)
60
{
61
dist_min = 0;
62
dist_max = 1000.0f;
63
offset = 0;
64
pitch_min = 100.0f;
65
pitch_max = 100.0f;
66
shakes = 0.0f;
67
volume = 1.0f;
68
flags = SNDFL_FOLLOW;
69
playc = 0i;
70
sample_count = 0i;
71
samples =
""
;
72
name =
""
;
73
distshader =
""
;
74
pointparticle = -1;
75
}
ncDict::ncDict
void ncDict(void)
Definition
Dict.qc:18
ncSoundDict::ncSoundDict
void ncSoundDict(void)
Definition
SoundDict.h:59
src
shared
audio
SoundDict.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.