sounds.c 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. // killough 5/3/98: reformatted
  35. #ifdef HAVE_CONFIG_H
  36. #include "config.h"
  37. #endif
  38. #include <stddef.h>
  39. #include "doomtype.h"
  40. #include "sounds.h"
  41. //
  42. // Information about all the music
  43. //
  44. musicinfo_t S_music[] = {
  45. { NULL, 0, NULL, 0 },
  46. { "e1m1", 0, NULL, 0 },
  47. { "e1m2", 0, NULL, 0 },
  48. { "e1m3", 0, NULL, 0 },
  49. { "e1m4", 0, NULL, 0 },
  50. { "e1m5", 0, NULL, 0 },
  51. { "e1m6", 0, NULL, 0 },
  52. { "e1m7", 0, NULL, 0 },
  53. { "e1m8", 0, NULL, 0 },
  54. { "e1m9", 0, NULL, 0 },
  55. { "e2m1", 0, NULL, 0 },
  56. { "e2m2", 0, NULL, 0 },
  57. { "e2m3", 0, NULL, 0 },
  58. { "e2m4", 0, NULL, 0 },
  59. { "e2m5", 0, NULL, 0 },
  60. { "e2m6", 0, NULL, 0 },
  61. { "e2m7", 0, NULL, 0 },
  62. { "e2m8", 0, NULL, 0 },
  63. { "e2m9", 0, NULL, 0 },
  64. { "e3m1", 0, NULL, 0 },
  65. { "e3m2", 0, NULL, 0 },
  66. { "e3m3", 0, NULL, 0 },
  67. { "e3m4", 0, NULL, 0 },
  68. { "e3m5", 0, NULL, 0 },
  69. { "e3m6", 0, NULL, 0 },
  70. { "e3m7", 0, NULL, 0 },
  71. { "e3m8", 0, NULL, 0 },
  72. { "e3m9", 0, NULL, 0 },
  73. { "inter", 0, NULL, 0 },
  74. { "intro", 0, NULL, 0 },
  75. { "bunny", 0, NULL, 0 },
  76. { "victor", 0, NULL, 0 },
  77. { "introa", 0, NULL, 0 },
  78. { "runnin", 0, NULL, 0 },
  79. { "stalks", 0, NULL, 0 },
  80. { "countd", 0, NULL, 0 },
  81. { "betwee", 0, NULL, 0 },
  82. { "doom", 0, NULL, 0 },
  83. { "the_da", 0, NULL, 0 },
  84. { "shawn", 0, NULL, 0 },
  85. { "ddtblu", 0, NULL, 0 },
  86. { "in_cit", 0, NULL, 0 },
  87. { "dead", 0, NULL, 0 },
  88. { "stlks2", 0, NULL, 0 },
  89. { "theda2", 0, NULL, 0 },
  90. { "doom2", 0, NULL, 0 },
  91. { "ddtbl2", 0, NULL, 0 },
  92. { "runni2", 0, NULL, 0 },
  93. { "dead2", 0, NULL, 0 },
  94. { "stlks3", 0, NULL, 0 },
  95. { "romero", 0, NULL, 0 },
  96. { "shawn2", 0, NULL, 0 },
  97. { "messag", 0, NULL, 0 },
  98. { "count2", 0, NULL, 0 },
  99. { "ddtbl3", 0, NULL, 0 },
  100. { "ampie", 0, NULL, 0 },
  101. { "theda3", 0, NULL, 0 },
  102. { "adrian", 0, NULL, 0 },
  103. { "messg2", 0, NULL, 0 },
  104. { "romer2", 0, NULL, 0 },
  105. { "tense", 0, NULL, 0 },
  106. { "shawn3", 0, NULL, 0 },
  107. { "openin", 0, NULL, 0 },
  108. { "evil", 0, NULL, 0 },
  109. { "ultima", 0, NULL, 0 },
  110. { "read_m", 0, NULL, 0 },
  111. { "dm2ttl", 0, NULL, 0 },
  112. { "dm2int", 0, NULL, 0 },
  113. };
  114. //
  115. // Information about all the sfx
  116. //
  117. sfxinfo_t S_sfx[] = {
  118. // S_sfx[0] needs to be a dummy for odd reasons.
  119. { "none", false, 0, 0, -1, -1, 0, 0, 0 },
  120. { "pistol", false, 64, 0, -1, -1, 0, 0, 0 },
  121. { "shotgn", false, 64, 0, -1, -1, 0, 0, 0 },
  122. { "sgcock", false, 64, 0, -1, -1, 0, 0, 0 },
  123. { "dshtgn", false, 64, 0, -1, -1, 0, 0, 0 },
  124. { "dbopn", false, 64, 0, -1, -1, 0, 0, 0 },
  125. { "dbcls", false, 64, 0, -1, -1, 0, 0, 0 },
  126. { "dbload", false, 64, 0, -1, -1, 0, 0, 0 },
  127. { "plasma", false, 64, 0, -1, -1, 0, 0, 0 },
  128. { "bfg", false, 64, 0, -1, -1, 0, 0, 0 },
  129. { "sawup", false, 64, 0, -1, -1, 0, 0, 0 },
  130. { "sawidl", false, 118, 0, -1, -1, 0, 0, 0 },
  131. { "sawful", false, 64, 0, -1, -1, 0, 0, 0 },
  132. { "sawhit", false, 64, 0, -1, -1, 0, 0, 0 },
  133. { "rlaunc", false, 64, 0, -1, -1, 0, 0, 0 },
  134. { "rxplod", false, 70, 0, -1, -1, 0, 0, 0 },
  135. { "firsht", false, 70, 0, -1, -1, 0, 0, 0 },
  136. { "firxpl", false, 70, 0, -1, -1, 0, 0, 0 },
  137. { "pstart", false, 100, 0, -1, -1, 0, 0, 0 },
  138. { "pstop", false, 100, 0, -1, -1, 0, 0, 0 },
  139. { "doropn", false, 100, 0, -1, -1, 0, 0, 0 },
  140. { "dorcls", false, 100, 0, -1, -1, 0, 0, 0 },
  141. { "stnmov", false, 119, 0, -1, -1, 0, 0, 0 },
  142. { "swtchn", false, 78, 0, -1, -1, 0, 0, 0 },
  143. { "swtchx", false, 78, 0, -1, -1, 0, 0, 0 },
  144. { "plpain", false, 96, 0, -1, -1, 0, 0, 0 },
  145. { "dmpain", false, 96, 0, -1, -1, 0, 0, 0 },
  146. { "popain", false, 96, 0, -1, -1, 0, 0, 0 },
  147. { "vipain", false, 96, 0, -1, -1, 0, 0, 0 },
  148. { "mnpain", false, 96, 0, -1, -1, 0, 0, 0 },
  149. { "pepain", false, 96, 0, -1, -1, 0, 0, 0 },
  150. { "slop", false, 78, 0, -1, -1, 0, 0, 0 },
  151. { "itemup", true, 78, 0, -1, -1, 0, 0, 0 },
  152. { "wpnup", true, 78, 0, -1, -1, 0, 0, 0 },
  153. { "oof", false, 96, 0, -1, -1, 0, 0, 0 },
  154. { "telept", false, 32, 0, -1, -1, 0, 0, 0 },
  155. { "posit1", true, 98, 0, -1, -1, 0, 0, 0 },
  156. { "posit2", true, 98, 0, -1, -1, 0, 0, 0 },
  157. { "posit3", true, 98, 0, -1, -1, 0, 0, 0 },
  158. { "bgsit1", true, 98, 0, -1, -1, 0, 0, 0 },
  159. { "bgsit2", true, 98, 0, -1, -1, 0, 0, 0 },
  160. { "sgtsit", true, 98, 0, -1, -1, 0, 0, 0 },
  161. { "cacsit", true, 98, 0, -1, -1, 0, 0, 0 },
  162. { "brssit", true, 94, 0, -1, -1, 0, 0, 0 },
  163. { "cybsit", true, 92, 0, -1, -1, 0, 0, 0 },
  164. { "spisit", true, 90, 0, -1, -1, 0, 0, 0 },
  165. { "bspsit", true, 90, 0, -1, -1, 0, 0, 0 },
  166. { "kntsit", true, 90, 0, -1, -1, 0, 0, 0 },
  167. { "vilsit", true, 90, 0, -1, -1, 0, 0, 0 },
  168. { "mansit", true, 90, 0, -1, -1, 0, 0, 0 },
  169. { "pesit", true, 90, 0, -1, -1, 0, 0, 0 },
  170. { "sklatk", false, 70, 0, -1, -1, 0, 0, 0 },
  171. { "sgtatk", false, 70, 0, -1, -1, 0, 0, 0 },
  172. { "skepch", false, 70, 0, -1, -1, 0, 0, 0 },
  173. { "vilatk", false, 70, 0, -1, -1, 0, 0, 0 },
  174. { "claw", false, 70, 0, -1, -1, 0, 0, 0 },
  175. { "skeswg", false, 70, 0, -1, -1, 0, 0, 0 },
  176. { "pldeth", false, 32, 0, -1, -1, 0, 0, 0 },
  177. { "pdiehi", false, 32, 0, -1, -1, 0, 0, 0 },
  178. { "podth1", false, 70, 0, -1, -1, 0, 0, 0 },
  179. { "podth2", false, 70, 0, -1, -1, 0, 0, 0 },
  180. { "podth3", false, 70, 0, -1, -1, 0, 0, 0 },
  181. { "bgdth1", false, 70, 0, -1, -1, 0, 0, 0 },
  182. { "bgdth2", false, 70, 0, -1, -1, 0, 0, 0 },
  183. { "sgtdth", false, 70, 0, -1, -1, 0, 0, 0 },
  184. { "cacdth", false, 70, 0, -1, -1, 0, 0, 0 },
  185. { "skldth", false, 70, 0, -1, -1, 0, 0, 0 },
  186. { "brsdth", false, 32, 0, -1, -1, 0, 0, 0 },
  187. { "cybdth", false, 32, 0, -1, -1, 0, 0, 0 },
  188. { "spidth", false, 32, 0, -1, -1, 0, 0, 0 },
  189. { "bspdth", false, 32, 0, -1, -1, 0, 0, 0 },
  190. { "vildth", false, 32, 0, -1, -1, 0, 0, 0 },
  191. { "kntdth", false, 32, 0, -1, -1, 0, 0, 0 },
  192. { "pedth", false, 32, 0, -1, -1, 0, 0, 0 },
  193. { "skedth", false, 32, 0, -1, -1, 0, 0, 0 },
  194. { "posact", true, 120, 0, -1, -1, 0, 0, 0 },
  195. { "bgact", true, 120, 0, -1, -1, 0, 0, 0 },
  196. { "dmact", true, 120, 0, -1, -1, 0, 0, 0 },
  197. { "bspact", true, 100, 0, -1, -1, 0, 0, 0 },
  198. { "bspwlk", true, 100, 0, -1, -1, 0, 0, 0 },
  199. { "vilact", true, 100, 0, -1, -1, 0, 0, 0 },
  200. { "noway", false, 78, 0, -1, -1, 0, 0, 0 },
  201. { "barexp", false, 60, 0, -1, -1, 0, 0, 0 },
  202. { "punch", false, 64, 0, -1, -1, 0, 0, 0 },
  203. { "hoof", false, 70, 0, -1, -1, 0, 0, 0 },
  204. { "metal", false, 70, 0, -1, -1, 0, 0, 0 },
  205. { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0, 0, 0 },
  206. { "tink", false, 60, 0, -1, -1, 0, 0, 0 },
  207. { "bdopn", false, 100, 0, -1, -1, 0, 0, 0 },
  208. { "bdcls", false, 100, 0, -1, -1, 0, 0, 0 },
  209. { "itmbk", false, 100, 0, -1, -1, 0, 0, 0 },
  210. { "flame", false, 32, 0, -1, -1, 0, 0, 0 },
  211. { "flamst", false, 32, 0, -1, -1, 0, 0, 0 },
  212. { "getpow", false, 60, 0, -1, -1, 0, 0, 0 },
  213. { "bospit", false, 70, 0, -1, -1, 0, 0, 0 },
  214. { "boscub", false, 70, 0, -1, -1, 0, 0, 0 },
  215. { "bossit", false, 70, 0, -1, -1, 0, 0, 0 },
  216. { "bospn", false, 70, 0, -1, -1, 0, 0, 0 },
  217. { "bosdth", false, 70, 0, -1, -1, 0, 0, 0 },
  218. { "manatk", false, 70, 0, -1, -1, 0, 0, 0 },
  219. { "mandth", false, 70, 0, -1, -1, 0, 0, 0 },
  220. { "sssit", false, 70, 0, -1, -1, 0, 0, 0 },
  221. { "ssdth", false, 70, 0, -1, -1, 0, 0, 0 },
  222. { "keenpn", false, 70, 0, -1, -1, 0, 0, 0 },
  223. { "keendt", false, 70, 0, -1, -1, 0, 0, 0 },
  224. { "skeact", false, 70, 0, -1, -1, 0, 0, 0 },
  225. { "skesit", false, 70, 0, -1, -1, 0, 0, 0 },
  226. { "skeatk", false, 70, 0, -1, -1, 0, 0, 0 },
  227. { "radio", false, 60, 0, -1, -1, 0, 0, 0 },
  228. #ifdef DOGS
  229. // killough 11/98: dog sounds
  230. { "dgsit", false, 98, 0, -1, -1, 0 },
  231. { "dgatk", false, 70, 0, -1, -1, 0 },
  232. { "dgact", false, 120, 0, -1, -1, 0 },
  233. { "dgdth", false, 70, 0, -1, -1, 0 },
  234. { "dgpain", false, 96, 0, -1, -1, 0 },
  235. #endif
  236. };