aboutsummaryrefslogtreecommitdiff
path: root/src/sounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sounds.c')
-rw-r--r--src/sounds.c245
1 files changed, 245 insertions, 0 deletions
diff --git a/src/sounds.c b/src/sounds.c
new file mode 100644
index 0000000..cc68a3c
--- /dev/null
+++ b/src/sounds.c
@@ -0,0 +1,245 @@
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 * Copyright 2005, 2006 by
12 * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 * 02111-1307, USA.
28 *
29 * DESCRIPTION:
30 * Created by a sound utility.
31 * Kept as a sample, DOOM2 sounds.
32 *
33 *-----------------------------------------------------------------------------*/
34
35// killough 5/3/98: reformatted
36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#include "doomtype.h"
42#include "sounds.h"
43
44//
45// Information about all the music
46//
47
48musicinfo_t S_music[] = {
49 { 0 },
50 { "e1m1", 0 },
51 { "e1m2", 0 },
52 { "e1m3", 0 },
53 { "e1m4", 0 },
54 { "e1m5", 0 },
55 { "e1m6", 0 },
56 { "e1m7", 0 },
57 { "e1m8", 0 },
58 { "e1m9", 0 },
59 { "e2m1", 0 },
60 { "e2m2", 0 },
61 { "e2m3", 0 },
62 { "e2m4", 0 },
63 { "e2m5", 0 },
64 { "e2m6", 0 },
65 { "e2m7", 0 },
66 { "e2m8", 0 },
67 { "e2m9", 0 },
68 { "e3m1", 0 },
69 { "e3m2", 0 },
70 { "e3m3", 0 },
71 { "e3m4", 0 },
72 { "e3m5", 0 },
73 { "e3m6", 0 },
74 { "e3m7", 0 },
75 { "e3m8", 0 },
76 { "e3m9", 0 },
77 { "inter", 0 },
78 { "intro", 0 },
79 { "bunny", 0 },
80 { "victor", 0 },
81 { "introa", 0 },
82 { "runnin", 0 },
83 { "stalks", 0 },
84 { "countd", 0 },
85 { "betwee", 0 },
86 { "doom", 0 },
87 { "the_da", 0 },
88 { "shawn", 0 },
89 { "ddtblu", 0 },
90 { "in_cit", 0 },
91 { "dead", 0 },
92 { "stlks2", 0 },
93 { "theda2", 0 },
94 { "doom2", 0 },
95 { "ddtbl2", 0 },
96 { "runni2", 0 },
97 { "dead2", 0 },
98 { "stlks3", 0 },
99 { "romero", 0 },
100 { "shawn2", 0 },
101 { "messag", 0 },
102 { "count2", 0 },
103 { "ddtbl3", 0 },
104 { "ampie", 0 },
105 { "theda3", 0 },
106 { "adrian", 0 },
107 { "messg2", 0 },
108 { "romer2", 0 },
109 { "tense", 0 },
110 { "shawn3", 0 },
111 { "openin", 0 },
112 { "evil", 0 },
113 { "ultima", 0 },
114 { "read_m", 0 },
115 { "dm2ttl", 0 },
116 { "dm2int", 0 },
117};
118
119
120//
121// Information about all the sfx
122//
123
124sfxinfo_t S_sfx[] = {
125 // S_sfx[0] needs to be a dummy for odd reasons.
126 { "none", false, 0, 0, -1, -1, 0 },
127
128 { "pistol", false, 64, 0, -1, -1, 0 },
129 { "shotgn", false, 64, 0, -1, -1, 0 },
130 { "sgcock", false, 64, 0, -1, -1, 0 },
131 { "dshtgn", false, 64, 0, -1, -1, 0 },
132 { "dbopn", false, 64, 0, -1, -1, 0 },
133 { "dbcls", false, 64, 0, -1, -1, 0 },
134 { "dbload", false, 64, 0, -1, -1, 0 },
135 { "plasma", false, 64, 0, -1, -1, 0 },
136 { "bfg", false, 64, 0, -1, -1, 0 },
137 { "sawup", false, 64, 0, -1, -1, 0 },
138 { "sawidl", false, 118, 0, -1, -1, 0 },
139 { "sawful", false, 64, 0, -1, -1, 0 },
140 { "sawhit", false, 64, 0, -1, -1, 0 },
141 { "rlaunc", false, 64, 0, -1, -1, 0 },
142 { "rxplod", false, 70, 0, -1, -1, 0 },
143 { "firsht", false, 70, 0, -1, -1, 0 },
144 { "firxpl", false, 70, 0, -1, -1, 0 },
145 { "pstart", false, 100, 0, -1, -1, 0 },
146 { "pstop", false, 100, 0, -1, -1, 0 },
147 { "doropn", false, 100, 0, -1, -1, 0 },
148 { "dorcls", false, 100, 0, -1, -1, 0 },
149 { "stnmov", false, 119, 0, -1, -1, 0 },
150 { "swtchn", false, 78, 0, -1, -1, 0 },
151 { "swtchx", false, 78, 0, -1, -1, 0 },
152 { "plpain", false, 96, 0, -1, -1, 0 },
153 { "dmpain", false, 96, 0, -1, -1, 0 },
154 { "popain", false, 96, 0, -1, -1, 0 },
155 { "vipain", false, 96, 0, -1, -1, 0 },
156 { "mnpain", false, 96, 0, -1, -1, 0 },
157 { "pepain", false, 96, 0, -1, -1, 0 },
158 { "slop", false, 78, 0, -1, -1, 0 },
159 { "itemup", true, 78, 0, -1, -1, 0 },
160 { "wpnup", true, 78, 0, -1, -1, 0 },
161 { "oof", false, 96, 0, -1, -1, 0 },
162 { "telept", false, 32, 0, -1, -1, 0 },
163 { "posit1", true, 98, 0, -1, -1, 0 },
164 { "posit2", true, 98, 0, -1, -1, 0 },
165 { "posit3", true, 98, 0, -1, -1, 0 },
166 { "bgsit1", true, 98, 0, -1, -1, 0 },
167 { "bgsit2", true, 98, 0, -1, -1, 0 },
168 { "sgtsit", true, 98, 0, -1, -1, 0 },
169 { "cacsit", true, 98, 0, -1, -1, 0 },
170 { "brssit", true, 94, 0, -1, -1, 0 },
171 { "cybsit", true, 92, 0, -1, -1, 0 },
172 { "spisit", true, 90, 0, -1, -1, 0 },
173 { "bspsit", true, 90, 0, -1, -1, 0 },
174 { "kntsit", true, 90, 0, -1, -1, 0 },
175 { "vilsit", true, 90, 0, -1, -1, 0 },
176 { "mansit", true, 90, 0, -1, -1, 0 },
177 { "pesit", true, 90, 0, -1, -1, 0 },
178 { "sklatk", false, 70, 0, -1, -1, 0 },
179 { "sgtatk", false, 70, 0, -1, -1, 0 },
180 { "skepch", false, 70, 0, -1, -1, 0 },
181 { "vilatk", false, 70, 0, -1, -1, 0 },
182 { "claw", false, 70, 0, -1, -1, 0 },
183 { "skeswg", false, 70, 0, -1, -1, 0 },
184 { "pldeth", false, 32, 0, -1, -1, 0 },
185 { "pdiehi", false, 32, 0, -1, -1, 0 },
186 { "podth1", false, 70, 0, -1, -1, 0 },
187 { "podth2", false, 70, 0, -1, -1, 0 },
188 { "podth3", false, 70, 0, -1, -1, 0 },
189 { "bgdth1", false, 70, 0, -1, -1, 0 },
190 { "bgdth2", false, 70, 0, -1, -1, 0 },
191 { "sgtdth", false, 70, 0, -1, -1, 0 },
192 { "cacdth", false, 70, 0, -1, -1, 0 },
193 { "skldth", false, 70, 0, -1, -1, 0 },
194 { "brsdth", false, 32, 0, -1, -1, 0 },
195 { "cybdth", false, 32, 0, -1, -1, 0 },
196 { "spidth", false, 32, 0, -1, -1, 0 },
197 { "bspdth", false, 32, 0, -1, -1, 0 },
198 { "vildth", false, 32, 0, -1, -1, 0 },
199 { "kntdth", false, 32, 0, -1, -1, 0 },
200 { "pedth", false, 32, 0, -1, -1, 0 },
201 { "skedth", false, 32, 0, -1, -1, 0 },
202 { "posact", true, 120, 0, -1, -1, 0 },
203 { "bgact", true, 120, 0, -1, -1, 0 },
204 { "dmact", true, 120, 0, -1, -1, 0 },
205 { "bspact", true, 100, 0, -1, -1, 0 },
206 { "bspwlk", true, 100, 0, -1, -1, 0 },
207 { "vilact", true, 100, 0, -1, -1, 0 },
208 { "noway", false, 78, 0, -1, -1, 0 },
209 { "barexp", false, 60, 0, -1, -1, 0 },
210 { "punch", false, 64, 0, -1, -1, 0 },
211 { "hoof", false, 70, 0, -1, -1, 0 },
212 { "metal", false, 70, 0, -1, -1, 0 },
213 { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0 },
214 { "tink", false, 60, 0, -1, -1, 0 },
215 { "bdopn", false, 100, 0, -1, -1, 0 },
216 { "bdcls", false, 100, 0, -1, -1, 0 },
217 { "itmbk", false, 100, 0, -1, -1, 0 },
218 { "flame", false, 32, 0, -1, -1, 0 },
219 { "flamst", false, 32, 0, -1, -1, 0 },
220 { "getpow", false, 60, 0, -1, -1, 0 },
221 { "bospit", false, 70, 0, -1, -1, 0 },
222 { "boscub", false, 70, 0, -1, -1, 0 },
223 { "bossit", false, 70, 0, -1, -1, 0 },
224 { "bospn", false, 70, 0, -1, -1, 0 },
225 { "bosdth", false, 70, 0, -1, -1, 0 },
226 { "manatk", false, 70, 0, -1, -1, 0 },
227 { "mandth", false, 70, 0, -1, -1, 0 },
228 { "sssit", false, 70, 0, -1, -1, 0 },
229 { "ssdth", false, 70, 0, -1, -1, 0 },
230 { "keenpn", false, 70, 0, -1, -1, 0 },
231 { "keendt", false, 70, 0, -1, -1, 0 },
232 { "skeact", false, 70, 0, -1, -1, 0 },
233 { "skesit", false, 70, 0, -1, -1, 0 },
234 { "skeatk", false, 70, 0, -1, -1, 0 },
235 { "radio", false, 60, 0, -1, -1, 0 },
236
237#ifdef DOGS
238 // killough 11/98: dog sounds
239 { "dgsit", false, 98, 0, -1, -1, 0 },
240 { "dgatk", false, 70, 0, -1, -1, 0 },
241 { "dgact", false, 120, 0, -1, -1, 0 },
242 { "dgdth", false, 70, 0, -1, -1, 0 },
243 { "dgpain", false, 96, 0, -1, -1, 0 },
244#endif
245};