sounds.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. // DESCRIPTION:
  18. // Created by the sound utility written by Dave Taylor.
  19. // Kept as a sample, DOOM2 sounds. Frozen.
  20. //
  21. //-----------------------------------------------------------------------------
  22. #ifndef __SOUNDS__
  23. #define __SOUNDS__
  24. //
  25. // SoundFX struct.
  26. //
  27. typedef struct sfxinfo_struct sfxinfo_t;
  28. struct sfxinfo_struct
  29. {
  30. // up to 6-character name
  31. char* name;
  32. // Sfx singularity (only one at a time)
  33. int singularity;
  34. // Sfx priority
  35. int priority;
  36. // referenced sound if a link
  37. sfxinfo_t* link;
  38. // pitch if a link
  39. int pitch;
  40. // volume if a link
  41. int volume;
  42. // sound data
  43. void* data;
  44. // this is checked every second to see if sound
  45. // can be thrown out (if 0, then decrement, if -1,
  46. // then throw out, if > 0, then it is in use)
  47. int usefulness;
  48. // lump number of sfx
  49. int lumpnum;
  50. };
  51. //
  52. // MusicInfo struct.
  53. //
  54. typedef struct
  55. {
  56. // up to 6-character name
  57. char* name;
  58. // lump number of music
  59. int lumpnum;
  60. // music data
  61. void* data;
  62. // music handle once registered
  63. int handle;
  64. } musicinfo_t;
  65. // the complete set of sound effects
  66. extern sfxinfo_t S_sfx[];
  67. // the complete set of music
  68. extern musicinfo_t S_music[];
  69. //
  70. // Identifiers for all music in game.
  71. //
  72. typedef enum
  73. {
  74. mus_None,
  75. mus_e1m1,
  76. mus_e1m2,
  77. mus_e1m3,
  78. mus_e1m4,
  79. mus_e1m5,
  80. mus_e1m6,
  81. mus_e1m7,
  82. mus_e1m8,
  83. mus_e1m9,
  84. mus_e2m1,
  85. mus_e2m2,
  86. mus_e2m3,
  87. mus_e2m4,
  88. mus_e2m5,
  89. mus_e2m6,
  90. mus_e2m7,
  91. mus_e2m8,
  92. mus_e2m9,
  93. mus_e3m1,
  94. mus_e3m2,
  95. mus_e3m3,
  96. mus_e3m4,
  97. mus_e3m5,
  98. mus_e3m6,
  99. mus_e3m7,
  100. mus_e3m8,
  101. mus_e3m9,
  102. mus_inter,
  103. mus_intro,
  104. mus_bunny,
  105. mus_victor,
  106. mus_introa,
  107. mus_runnin,
  108. mus_stalks,
  109. mus_countd,
  110. mus_betwee,
  111. mus_doom,
  112. mus_the_da,
  113. mus_shawn,
  114. mus_ddtblu,
  115. mus_in_cit,
  116. mus_dead,
  117. mus_stlks2,
  118. mus_theda2,
  119. mus_doom2,
  120. mus_ddtbl2,
  121. mus_runni2,
  122. mus_dead2,
  123. mus_stlks3,
  124. mus_romero,
  125. mus_shawn2,
  126. mus_messag,
  127. mus_count2,
  128. mus_ddtbl3,
  129. mus_ampie,
  130. mus_theda3,
  131. mus_adrian,
  132. mus_messg2,
  133. mus_romer2,
  134. mus_tense,
  135. mus_shawn3,
  136. mus_openin,
  137. mus_evil,
  138. mus_ultima,
  139. mus_read_m,
  140. mus_dm2ttl,
  141. mus_dm2int,
  142. NUMMUSIC
  143. } musicenum_t;
  144. //
  145. // Identifiers for all sfx in game.
  146. //
  147. typedef enum
  148. {
  149. sfx_None,
  150. sfx_pistol,
  151. sfx_shotgn,
  152. sfx_sgcock,
  153. sfx_dshtgn,
  154. sfx_dbopn,
  155. sfx_dbcls,
  156. sfx_dbload,
  157. sfx_plasma,
  158. sfx_bfg,
  159. sfx_sawup,
  160. sfx_sawidl,
  161. sfx_sawful,
  162. sfx_sawhit,
  163. sfx_rlaunc,
  164. sfx_rxplod,
  165. sfx_firsht,
  166. sfx_firxpl,
  167. sfx_pstart,
  168. sfx_pstop,
  169. sfx_doropn,
  170. sfx_dorcls,
  171. sfx_stnmov,
  172. sfx_swtchn,
  173. sfx_swtchx,
  174. sfx_plpain,
  175. sfx_dmpain,
  176. sfx_popain,
  177. sfx_vipain,
  178. sfx_mnpain,
  179. sfx_pepain,
  180. sfx_slop,
  181. sfx_itemup,
  182. sfx_wpnup,
  183. sfx_oof,
  184. sfx_telept,
  185. sfx_posit1,
  186. sfx_posit2,
  187. sfx_posit3,
  188. sfx_bgsit1,
  189. sfx_bgsit2,
  190. sfx_sgtsit,
  191. sfx_cacsit,
  192. sfx_brssit,
  193. sfx_cybsit,
  194. sfx_spisit,
  195. sfx_bspsit,
  196. sfx_kntsit,
  197. sfx_vilsit,
  198. sfx_mansit,
  199. sfx_pesit,
  200. sfx_sklatk,
  201. sfx_sgtatk,
  202. sfx_skepch,
  203. sfx_vilatk,
  204. sfx_claw,
  205. sfx_skeswg,
  206. sfx_pldeth,
  207. sfx_pdiehi,
  208. sfx_podth1,
  209. sfx_podth2,
  210. sfx_podth3,
  211. sfx_bgdth1,
  212. sfx_bgdth2,
  213. sfx_sgtdth,
  214. sfx_cacdth,
  215. sfx_skldth,
  216. sfx_brsdth,
  217. sfx_cybdth,
  218. sfx_spidth,
  219. sfx_bspdth,
  220. sfx_vildth,
  221. sfx_kntdth,
  222. sfx_pedth,
  223. sfx_skedth,
  224. sfx_posact,
  225. sfx_bgact,
  226. sfx_dmact,
  227. sfx_bspact,
  228. sfx_bspwlk,
  229. sfx_vilact,
  230. sfx_noway,
  231. sfx_barexp,
  232. sfx_punch,
  233. sfx_hoof,
  234. sfx_metal,
  235. sfx_chgun,
  236. sfx_tink,
  237. sfx_bdopn,
  238. sfx_bdcls,
  239. sfx_itmbk,
  240. sfx_flame,
  241. sfx_flamst,
  242. sfx_getpow,
  243. sfx_bospit,
  244. sfx_boscub,
  245. sfx_bossit,
  246. sfx_bospn,
  247. sfx_bosdth,
  248. sfx_manatk,
  249. sfx_mandth,
  250. sfx_sssit,
  251. sfx_ssdth,
  252. sfx_keenpn,
  253. sfx_keendt,
  254. sfx_skeact,
  255. sfx_skesit,
  256. sfx_skeatk,
  257. sfx_radio,
  258. NUMSFX
  259. } sfxenum_t;
  260. #endif
  261. //-----------------------------------------------------------------------------
  262. //
  263. // $Log:$
  264. //
  265. //-----------------------------------------------------------------------------