sounds.c 6.7 KB

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