fix remapping behavior. Remapping is only necessary if we are rendering on the workbe...
[AROS-Contrib.git] / Games / Doom / sounds.c
blob270c8adb6c4c840ee9f9cd53f36319c4724b417c
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
17 // $Log$
18 // Revision 1.1 2000/02/29 18:21:05 stegerg
19 // Doom port based on ADoomPPC. Read README.AROS!
22 // DESCRIPTION:
23 // Created by a sound utility.
24 // Kept as a sample, DOOM2 sounds.
26 //-----------------------------------------------------------------------------
29 static const char
30 rcsid[] = "$Id$";
33 #include "doomdef.h"
34 #include "doomtype.h"
35 #include "sounds.h"
38 // Information about all the music
41 FAR musicinfo_t S_music[] =
43 { 0 },
44 { "e1m1", 0 },
45 { "e1m2", 0 },
46 { "e1m3", 0 },
47 { "e1m4", 0 },
48 { "e1m5", 0 },
49 { "e1m6", 0 },
50 { "e1m7", 0 },
51 { "e1m8", 0 },
52 { "e1m9", 0 },
53 { "e2m1", 0 },
54 { "e2m2", 0 },
55 { "e2m3", 0 },
56 { "e2m4", 0 },
57 { "e2m5", 0 },
58 { "e2m6", 0 },
59 { "e2m7", 0 },
60 { "e2m8", 0 },
61 { "e2m9", 0 },
62 { "e3m1", 0 },
63 { "e3m2", 0 },
64 { "e3m3", 0 },
65 { "e3m4", 0 },
66 { "e3m5", 0 },
67 { "e3m6", 0 },
68 { "e3m7", 0 },
69 { "e3m8", 0 },
70 { "e3m9", 0 },
71 { "inter", 0 },
72 { "intro", 0 },
73 { "bunny", 0 },
74 { "victor", 0 },
75 { "introa", 0 },
76 { "runnin", 0 },
77 { "stalks", 0 },
78 { "countd", 0 },
79 { "betwee", 0 },
80 { "doom", 0 },
81 { "the_da", 0 },
82 { "shawn", 0 },
83 { "ddtblu", 0 },
84 { "in_cit", 0 },
85 { "dead", 0 },
86 { "stlks2", 0 },
87 { "theda2", 0 },
88 { "doom2", 0 },
89 { "ddtbl2", 0 },
90 { "runni2", 0 },
91 { "dead2", 0 },
92 { "stlks3", 0 },
93 { "romero", 0 },
94 { "shawn2", 0 },
95 { "messag", 0 },
96 { "count2", 0 },
97 { "ddtbl3", 0 },
98 { "ampie", 0 },
99 { "theda3", 0 },
100 { "adrian", 0 },
101 { "messg2", 0 },
102 { "romer2", 0 },
103 { "tense", 0 },
104 { "shawn3", 0 },
105 { "openin", 0 },
106 { "evil", 0 },
107 { "ultima", 0 },
108 { "read_m", 0 },
109 { "dm2ttl", 0 },
110 { "dm2int", 0 }
115 // Information about all the sfx
118 FAR sfxinfo_t S_sfx[] =
120 // S_sfx[0] needs to be a dummy for odd reasons.
121 { "none", false, 0, 0, -1, -1, 0 },
123 { "pistol", false, 64, 0, -1, -1, 0 },
124 { "shotgn", false, 64, 0, -1, -1, 0 },
125 { "sgcock", false, 64, 0, -1, -1, 0 },
126 { "dshtgn", false, 64, 0, -1, -1, 0 },
127 { "dbopn", false, 64, 0, -1, -1, 0 },
128 { "dbcls", false, 64, 0, -1, -1, 0 },
129 { "dbload", false, 64, 0, -1, -1, 0 },
130 { "plasma", false, 64, 0, -1, -1, 0 },
131 { "bfg", false, 64, 0, -1, -1, 0 },
132 { "sawup", false, 64, 0, -1, -1, 0 },
133 { "sawidl", false, 118, 0, -1, -1, 0 },
134 { "sawful", false, 64, 0, -1, -1, 0 },
135 { "sawhit", false, 64, 0, -1, -1, 0 },
136 { "rlaunc", false, 64, 0, -1, -1, 0 },
137 { "rxplod", false, 70, 0, -1, -1, 0 },
138 { "firsht", false, 70, 0, -1, -1, 0 },
139 { "firxpl", false, 70, 0, -1, -1, 0 },
140 { "pstart", false, 100, 0, -1, -1, 0 },
141 { "pstop", false, 100, 0, -1, -1, 0 },
142 { "doropn", false, 100, 0, -1, -1, 0 },
143 { "dorcls", false, 100, 0, -1, -1, 0 },
144 { "stnmov", false, 119, 0, -1, -1, 0 },
145 { "swtchn", false, 78, 0, -1, -1, 0 },
146 { "swtchx", false, 78, 0, -1, -1, 0 },
147 { "plpain", false, 96, 0, -1, -1, 0 },
148 { "dmpain", false, 96, 0, -1, -1, 0 },
149 { "popain", false, 96, 0, -1, -1, 0 },
150 { "vipain", false, 96, 0, -1, -1, 0 },
151 { "mnpain", false, 96, 0, -1, -1, 0 },
152 { "pepain", false, 96, 0, -1, -1, 0 },
153 { "slop", false, 78, 0, -1, -1, 0 },
154 { "itemup", true, 78, 0, -1, -1, 0 },
155 { "wpnup", true, 78, 0, -1, -1, 0 },
156 { "oof", false, 96, 0, -1, -1, 0 },
157 { "telept", false, 32, 0, -1, -1, 0 },
158 { "posit1", true, 98, 0, -1, -1, 0 },
159 { "posit2", true, 98, 0, -1, -1, 0 },
160 { "posit3", true, 98, 0, -1, -1, 0 },
161 { "bgsit1", true, 98, 0, -1, -1, 0 },
162 { "bgsit2", true, 98, 0, -1, -1, 0 },
163 { "sgtsit", true, 98, 0, -1, -1, 0 },
164 { "cacsit", true, 98, 0, -1, -1, 0 },
165 { "brssit", true, 94, 0, -1, -1, 0 },
166 { "cybsit", true, 92, 0, -1, -1, 0 },
167 { "spisit", true, 90, 0, -1, -1, 0 },
168 { "bspsit", true, 90, 0, -1, -1, 0 },
169 { "kntsit", true, 90, 0, -1, -1, 0 },
170 { "vilsit", true, 90, 0, -1, -1, 0 },
171 { "mansit", true, 90, 0, -1, -1, 0 },
172 { "pesit", true, 90, 0, -1, -1, 0 },
173 { "sklatk", false, 70, 0, -1, -1, 0 },
174 { "sgtatk", false, 70, 0, -1, -1, 0 },
175 { "skepch", false, 70, 0, -1, -1, 0 },
176 { "vilatk", false, 70, 0, -1, -1, 0 },
177 { "claw", false, 70, 0, -1, -1, 0 },
178 { "skeswg", false, 70, 0, -1, -1, 0 },
179 { "pldeth", false, 32, 0, -1, -1, 0 },
180 { "pdiehi", false, 32, 0, -1, -1, 0 },
181 { "podth1", false, 70, 0, -1, -1, 0 },
182 { "podth2", false, 70, 0, -1, -1, 0 },
183 { "podth3", false, 70, 0, -1, -1, 0 },
184 { "bgdth1", false, 70, 0, -1, -1, 0 },
185 { "bgdth2", false, 70, 0, -1, -1, 0 },
186 { "sgtdth", false, 70, 0, -1, -1, 0 },
187 { "cacdth", false, 70, 0, -1, -1, 0 },
188 { "skldth", false, 70, 0, -1, -1, 0 },
189 { "brsdth", false, 32, 0, -1, -1, 0 },
190 { "cybdth", false, 32, 0, -1, -1, 0 },
191 { "spidth", false, 32, 0, -1, -1, 0 },
192 { "bspdth", false, 32, 0, -1, -1, 0 },
193 { "vildth", false, 32, 0, -1, -1, 0 },
194 { "kntdth", false, 32, 0, -1, -1, 0 },
195 { "pedth", false, 32, 0, -1, -1, 0 },
196 { "skedth", false, 32, 0, -1, -1, 0 },
197 { "posact", true, 120, 0, -1, -1, 0 },
198 { "bgact", true, 120, 0, -1, -1, 0 },
199 { "dmact", true, 120, 0, -1, -1, 0 },
200 { "bspact", true, 100, 0, -1, -1, 0 },
201 { "bspwlk", true, 100, 0, -1, -1, 0 },
202 { "vilact", true, 100, 0, -1, -1, 0 },
203 { "noway", false, 78, 0, -1, -1, 0 },
204 { "barexp", false, 60, 0, -1, -1, 0 },
205 { "punch", false, 64, 0, -1, -1, 0 },
206 { "hoof", false, 70, 0, -1, -1, 0 },
207 { "metal", false, 70, 0, -1, -1, 0 },
208 { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0 },
209 { "tink", false, 60, 0, -1, -1, 0 },
210 { "bdopn", false, 100, 0, -1, -1, 0 },
211 { "bdcls", false, 100, 0, -1, -1, 0 },
212 { "itmbk", false, 100, 0, -1, -1, 0 },
213 { "flame", false, 32, 0, -1, -1, 0 },
214 { "flamst", false, 32, 0, -1, -1, 0 },
215 { "getpow", false, 60, 0, -1, -1, 0 },
216 { "bospit", false, 70, 0, -1, -1, 0 },
217 { "boscub", false, 70, 0, -1, -1, 0 },
218 { "bossit", false, 70, 0, -1, -1, 0 },
219 { "bospn", false, 70, 0, -1, -1, 0 },
220 { "bosdth", false, 70, 0, -1, -1, 0 },
221 { "manatk", false, 70, 0, -1, -1, 0 },
222 { "mandth", false, 70, 0, -1, -1, 0 },
223 { "sssit", false, 70, 0, -1, -1, 0 },
224 { "ssdth", false, 70, 0, -1, -1, 0 },
225 { "keenpn", false, 70, 0, -1, -1, 0 },
226 { "keendt", false, 70, 0, -1, -1, 0 },
227 { "skeact", false, 70, 0, -1, -1, 0 },
228 { "skesit", false, 70, 0, -1, -1, 0 },
229 { "skeatk", false, 70, 0, -1, -1, 0 },
230 { "radio", false, 60, 0, -1, -1, 0 }