diff options
Diffstat (limited to 'apps/plugins/doom/sounds.h')
-rw-r--r-- | apps/plugins/doom/sounds.h | 303 |
1 files changed, 303 insertions, 0 deletions
diff --git a/apps/plugins/doom/sounds.h b/apps/plugins/doom/sounds.h new file mode 100644 index 0000000000..887a8e785f --- /dev/null +++ b/apps/plugins/doom/sounds.h | |||
@@ -0,0 +1,303 @@ | |||
1 | /* Emacs style mode select -*- C++ -*- | ||
2 | *----------------------------------------------------------------------------- | ||
3 | * | ||
4 | * | ||
5 | * PrBoom a Doom port merged with LxDoom and LSDLDoom | ||
6 | * based on BOOM, a modified and improved DOOM engine | ||
7 | * Copyright (C) 1999 by | ||
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman | ||
9 | * Copyright (C) 1999-2000 by | ||
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
25 | * 02111-1307, USA. | ||
26 | * | ||
27 | * DESCRIPTION: | ||
28 | * Created by the sound utility written by Dave Taylor. | ||
29 | * Kept as a sample, DOOM2 sounds. Frozen. | ||
30 | * | ||
31 | *-----------------------------------------------------------------------------*/ | ||
32 | |||
33 | #ifndef __SOUNDS__ | ||
34 | #define __SOUNDS__ | ||
35 | |||
36 | // | ||
37 | // SoundFX struct. | ||
38 | // | ||
39 | |||
40 | struct sfxinfo_struct; | ||
41 | |||
42 | typedef struct sfxinfo_struct sfxinfo_t; | ||
43 | |||
44 | struct sfxinfo_struct { | ||
45 | |||
46 | // up to 6-character name | ||
47 | const char *name; // CPhipps - const | ||
48 | |||
49 | // Sfx singularity (only one at a time) | ||
50 | int singularity; | ||
51 | |||
52 | // Sfx priority | ||
53 | int priority; | ||
54 | |||
55 | // referenced sound if a link | ||
56 | sfxinfo_t *link; | ||
57 | |||
58 | // pitch if a link | ||
59 | int pitch; | ||
60 | |||
61 | // volume if a link | ||
62 | int volume; | ||
63 | |||
64 | // sound data | ||
65 | void *data; | ||
66 | |||
67 | // this is checked every second to see if sound | ||
68 | // can be thrown out (if 0, then decrement, if -1, | ||
69 | // then throw out, if > 0, then it is in use) | ||
70 | int usefulness; | ||
71 | |||
72 | // lump number of sfx | ||
73 | int lumpnum; | ||
74 | }; | ||
75 | |||
76 | // | ||
77 | // MusicInfo struct. | ||
78 | // | ||
79 | |||
80 | typedef struct { | ||
81 | // up to 6-character name | ||
82 | const char *name; // CPhipps - const | ||
83 | |||
84 | // lump number of music | ||
85 | int lumpnum; | ||
86 | |||
87 | /* music data - cphipps 4/11 made const void* */ | ||
88 | const void *data; | ||
89 | |||
90 | // music handle once registered | ||
91 | int handle; | ||
92 | } musicinfo_t; | ||
93 | |||
94 | // the complete set of sound effects | ||
95 | extern sfxinfo_t S_sfx[]; | ||
96 | |||
97 | // the complete set of music | ||
98 | extern musicinfo_t S_music[]; | ||
99 | |||
100 | // | ||
101 | // Identifiers for all music in game. | ||
102 | // | ||
103 | |||
104 | typedef enum { | ||
105 | mus_None, | ||
106 | mus_e1m1, | ||
107 | mus_e1m2, | ||
108 | mus_e1m3, | ||
109 | mus_e1m4, | ||
110 | mus_e1m5, | ||
111 | mus_e1m6, | ||
112 | mus_e1m7, | ||
113 | mus_e1m8, | ||
114 | mus_e1m9, | ||
115 | mus_e2m1, | ||
116 | mus_e2m2, | ||
117 | mus_e2m3, | ||
118 | mus_e2m4, | ||
119 | mus_e2m5, | ||
120 | mus_e2m6, | ||
121 | mus_e2m7, | ||
122 | mus_e2m8, | ||
123 | mus_e2m9, | ||
124 | mus_e3m1, | ||
125 | mus_e3m2, | ||
126 | mus_e3m3, | ||
127 | mus_e3m4, | ||
128 | mus_e3m5, | ||
129 | mus_e3m6, | ||
130 | mus_e3m7, | ||
131 | mus_e3m8, | ||
132 | mus_e3m9, | ||
133 | mus_inter, | ||
134 | mus_intro, | ||
135 | mus_bunny, | ||
136 | mus_victor, | ||
137 | mus_introa, | ||
138 | mus_runnin, | ||
139 | mus_stalks, | ||
140 | mus_countd, | ||
141 | mus_betwee, | ||
142 | mus_doom, | ||
143 | mus_the_da, | ||
144 | mus_shawn, | ||
145 | mus_ddtblu, | ||
146 | mus_in_cit, | ||
147 | mus_dead, | ||
148 | mus_stlks2, | ||
149 | mus_theda2, | ||
150 | mus_doom2, | ||
151 | mus_ddtbl2, | ||
152 | mus_runni2, | ||
153 | mus_dead2, | ||
154 | mus_stlks3, | ||
155 | mus_romero, | ||
156 | mus_shawn2, | ||
157 | mus_messag, | ||
158 | mus_count2, | ||
159 | mus_ddtbl3, | ||
160 | mus_ampie, | ||
161 | mus_theda3, | ||
162 | mus_adrian, | ||
163 | mus_messg2, | ||
164 | mus_romer2, | ||
165 | mus_tense, | ||
166 | mus_shawn3, | ||
167 | mus_openin, | ||
168 | mus_evil, | ||
169 | mus_ultima, | ||
170 | mus_read_m, | ||
171 | mus_dm2ttl, | ||
172 | mus_dm2int, | ||
173 | NUMMUSIC | ||
174 | } musicenum_t; | ||
175 | |||
176 | // | ||
177 | // Identifiers for all sfx in game. | ||
178 | // | ||
179 | |||
180 | typedef enum { | ||
181 | sfx_None, | ||
182 | sfx_pistol, | ||
183 | sfx_shotgn, | ||
184 | sfx_sgcock, | ||
185 | sfx_dshtgn, | ||
186 | sfx_dbopn, | ||
187 | sfx_dbcls, | ||
188 | sfx_dbload, | ||
189 | sfx_plasma, | ||
190 | sfx_bfg, | ||
191 | sfx_sawup, | ||
192 | sfx_sawidl, | ||
193 | sfx_sawful, | ||
194 | sfx_sawhit, | ||
195 | sfx_rlaunc, | ||
196 | sfx_rxplod, | ||
197 | sfx_firsht, | ||
198 | sfx_firxpl, | ||
199 | sfx_pstart, | ||
200 | sfx_pstop, | ||
201 | sfx_doropn, | ||
202 | sfx_dorcls, | ||
203 | sfx_stnmov, | ||
204 | sfx_swtchn, | ||
205 | sfx_swtchx, | ||
206 | sfx_plpain, | ||
207 | sfx_dmpain, | ||
208 | sfx_popain, | ||
209 | sfx_vipain, | ||
210 | sfx_mnpain, | ||
211 | sfx_pepain, | ||
212 | sfx_slop, | ||
213 | sfx_itemup, | ||
214 | sfx_wpnup, | ||
215 | sfx_oof, | ||
216 | sfx_telept, | ||
217 | sfx_posit1, | ||
218 | sfx_posit2, | ||
219 | sfx_posit3, | ||
220 | sfx_bgsit1, | ||
221 | sfx_bgsit2, | ||
222 | sfx_sgtsit, | ||
223 | sfx_cacsit, | ||
224 | sfx_brssit, | ||
225 | sfx_cybsit, | ||
226 | sfx_spisit, | ||
227 | sfx_bspsit, | ||
228 | sfx_kntsit, | ||
229 | sfx_vilsit, | ||
230 | sfx_mansit, | ||
231 | sfx_pesit, | ||
232 | sfx_sklatk, | ||
233 | sfx_sgtatk, | ||
234 | sfx_skepch, | ||
235 | sfx_vilatk, | ||
236 | sfx_claw, | ||
237 | sfx_skeswg, | ||
238 | sfx_pldeth, | ||
239 | sfx_pdiehi, | ||
240 | sfx_podth1, | ||
241 | sfx_podth2, | ||
242 | sfx_podth3, | ||
243 | sfx_bgdth1, | ||
244 | sfx_bgdth2, | ||
245 | sfx_sgtdth, | ||
246 | sfx_cacdth, | ||
247 | sfx_skldth, | ||
248 | sfx_brsdth, | ||
249 | sfx_cybdth, | ||
250 | sfx_spidth, | ||
251 | sfx_bspdth, | ||
252 | sfx_vildth, | ||
253 | sfx_kntdth, | ||
254 | sfx_pedth, | ||
255 | sfx_skedth, | ||
256 | sfx_posact, | ||
257 | sfx_bgact, | ||
258 | sfx_dmact, | ||
259 | sfx_bspact, | ||
260 | sfx_bspwlk, | ||
261 | sfx_vilact, | ||
262 | sfx_noway, | ||
263 | sfx_barexp, | ||
264 | sfx_punch, | ||
265 | sfx_hoof, | ||
266 | sfx_metal, | ||
267 | sfx_chgun, | ||
268 | sfx_tink, | ||
269 | sfx_bdopn, | ||
270 | sfx_bdcls, | ||
271 | sfx_itmbk, | ||
272 | sfx_flame, | ||
273 | sfx_flamst, | ||
274 | sfx_getpow, | ||
275 | sfx_bospit, | ||
276 | sfx_boscub, | ||
277 | sfx_bossit, | ||
278 | sfx_bospn, | ||
279 | sfx_bosdth, | ||
280 | sfx_manatk, | ||
281 | sfx_mandth, | ||
282 | sfx_sssit, | ||
283 | sfx_ssdth, | ||
284 | sfx_keenpn, | ||
285 | sfx_keendt, | ||
286 | sfx_skeact, | ||
287 | sfx_skesit, | ||
288 | sfx_skeatk, | ||
289 | sfx_radio, | ||
290 | |||
291 | #ifdef DOGS | ||
292 | /* killough 11/98: dog sounds */ | ||
293 | sfx_dgsit, | ||
294 | sfx_dgatk, | ||
295 | sfx_dgact, | ||
296 | sfx_dgdth, | ||
297 | sfx_dgpain, | ||
298 | #endif | ||
299 | |||
300 | NUMSFX | ||
301 | } sfxenum_t; | ||
302 | |||
303 | #endif | ||