diff options
author | Russell Rice | 2006-09-21 11:13:28 +0000 |
---|---|---|
committer | Russell Rice | 2006-09-21 11:13:28 +0000 |
commit | 6339c4cbeb608b008eafe0b1e358285ae08ef902 (patch) | |
tree | 10ea17c49b4d38a8b5ec769ccee965d30ab1a08c /src/sounds.c | |
parent | 16c1bc056105cee72e86b3dda1cc323f1be2c7b2 (diff) | |
download | chocolate-doom-6339c4cbeb608b008eafe0b1e358285ae08ef902.tar.gz chocolate-doom-6339c4cbeb608b008eafe0b1e358285ae08ef902.tar.bz2 chocolate-doom-6339c4cbeb608b008eafe0b1e358285ae08ef902.zip |
Fix a lot of warnings (for fussy compilers) and one always-true check
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 641
Diffstat (limited to 'src/sounds.c')
-rw-r--r-- | src/sounds.c | 358 |
1 files changed, 179 insertions, 179 deletions
diff --git a/src/sounds.c b/src/sounds.c index b9c4d692..4a425c37 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: sounds.c 8 2005-07-23 16:44:57Z fraggle $ +// $Id: sounds.c 641 2006-09-21 11:13:28Z rtc_marine $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -37,7 +37,7 @@ static const char -rcsid[] = "$Id: sounds.c 8 2005-07-23 16:44:57Z fraggle $"; +rcsid[] = "$Id: sounds.c 641 2006-09-21 11:13:28Z rtc_marine $"; #include "doomtype.h" @@ -49,74 +49,74 @@ rcsid[] = "$Id: sounds.c 8 2005-07-23 16:44:57Z fraggle $"; musicinfo_t S_music[] = { - { 0 }, - { "e1m1", 0 }, - { "e1m2", 0 }, - { "e1m3", 0 }, - { "e1m4", 0 }, - { "e1m5", 0 }, - { "e1m6", 0 }, - { "e1m7", 0 }, - { "e1m8", 0 }, - { "e1m9", 0 }, - { "e2m1", 0 }, - { "e2m2", 0 }, - { "e2m3", 0 }, - { "e2m4", 0 }, - { "e2m5", 0 }, - { "e2m6", 0 }, - { "e2m7", 0 }, - { "e2m8", 0 }, - { "e2m9", 0 }, - { "e3m1", 0 }, - { "e3m2", 0 }, - { "e3m3", 0 }, - { "e3m4", 0 }, - { "e3m5", 0 }, - { "e3m6", 0 }, - { "e3m7", 0 }, - { "e3m8", 0 }, - { "e3m9", 0 }, - { "inter", 0 }, - { "intro", 0 }, - { "bunny", 0 }, - { "victor", 0 }, - { "introa", 0 }, - { "runnin", 0 }, - { "stalks", 0 }, - { "countd", 0 }, - { "betwee", 0 }, - { "doom", 0 }, - { "the_da", 0 }, - { "shawn", 0 }, - { "ddtblu", 0 }, - { "in_cit", 0 }, - { "dead", 0 }, - { "stlks2", 0 }, - { "theda2", 0 }, - { "doom2", 0 }, - { "ddtbl2", 0 }, - { "runni2", 0 }, - { "dead2", 0 }, - { "stlks3", 0 }, - { "romero", 0 }, - { "shawn2", 0 }, - { "messag", 0 }, - { "count2", 0 }, - { "ddtbl3", 0 }, - { "ampie", 0 }, - { "theda3", 0 }, - { "adrian", 0 }, - { "messg2", 0 }, - { "romer2", 0 }, - { "tense", 0 }, - { "shawn3", 0 }, - { "openin", 0 }, - { "evil", 0 }, - { "ultima", 0 }, - { "read_m", 0 }, - { "dm2ttl", 0 }, - { "dm2int", 0 } + { "\0", 0, 0, 0 }, + { "e1m1", 0, 0, 0 }, + { "e1m2", 0, 0, 0 }, + { "e1m3", 0, 0, 0 }, + { "e1m4", 0, 0, 0 }, + { "e1m5", 0, 0, 0 }, + { "e1m6", 0, 0, 0 }, + { "e1m7", 0, 0, 0 }, + { "e1m8", 0, 0, 0 }, + { "e1m9", 0, 0, 0 }, + { "e2m1", 0, 0, 0 }, + { "e2m2", 0, 0, 0 }, + { "e2m3", 0, 0, 0 }, + { "e2m4", 0, 0, 0 }, + { "e2m5", 0, 0, 0 }, + { "e2m6", 0, 0, 0 }, + { "e2m7", 0, 0, 0 }, + { "e2m8", 0, 0, 0 }, + { "e2m9", 0, 0, 0 }, + { "e3m1", 0, 0, 0 }, + { "e3m2", 0, 0, 0 }, + { "e3m3", 0, 0, 0 }, + { "e3m4", 0, 0, 0 }, + { "e3m5", 0, 0, 0 }, + { "e3m6", 0, 0, 0 }, + { "e3m7", 0, 0, 0 }, + { "e3m8", 0, 0, 0 }, + { "e3m9", 0, 0, 0 }, + { "inter", 0, 0, 0 }, + { "intro", 0, 0, 0 }, + { "bunny", 0, 0, 0 }, + { "victor", 0, 0, 0 }, + { "introa", 0, 0, 0 }, + { "runnin", 0, 0, 0 }, + { "stalks", 0, 0, 0 }, + { "countd", 0, 0, 0 }, + { "betwee", 0, 0, 0 }, + { "doom", 0, 0, 0 }, + { "the_da", 0, 0, 0 }, + { "shawn", 0, 0, 0 }, + { "ddtblu", 0, 0, 0 }, + { "in_cit", 0, 0, 0 }, + { "dead", 0, 0, 0 }, + { "stlks2", 0, 0, 0 }, + { "theda2", 0, 0, 0 }, + { "doom2", 0, 0, 0 }, + { "ddtbl2", 0, 0, 0 }, + { "runni2", 0, 0, 0 }, + { "dead2", 0, 0, 0 }, + { "stlks3", 0, 0, 0 }, + { "romero", 0, 0, 0 }, + { "shawn2", 0, 0, 0 }, + { "messag", 0, 0, 0 }, + { "count2", 0, 0, 0 }, + { "ddtbl3", 0, 0, 0 }, + { "ampie", 0, 0, 0 }, + { "theda3", 0, 0, 0 }, + { "adrian", 0, 0, 0 }, + { "messg2", 0, 0, 0 }, + { "romer2", 0, 0, 0 }, + { "tense", 0, 0, 0 }, + { "shawn3", 0, 0, 0 }, + { "openin", 0, 0, 0 }, + { "evil", 0, 0, 0 }, + { "ultima", 0, 0, 0 }, + { "read_m", 0, 0, 0 }, + { "dm2ttl", 0, 0, 0 }, + { "dm2int", 0, 0, 0 } }; @@ -127,115 +127,115 @@ musicinfo_t S_music[] = sfxinfo_t S_sfx[] = { // S_sfx[0] needs to be a dummy for odd reasons. - { "none", false, 0, 0, -1, -1, 0 }, + { "none", false, 0, 0, -1, -1, 0, 0, 0 }, - { "pistol", false, 64, 0, -1, -1, 0 }, - { "shotgn", false, 64, 0, -1, -1, 0 }, - { "sgcock", false, 64, 0, -1, -1, 0 }, - { "dshtgn", false, 64, 0, -1, -1, 0 }, - { "dbopn", false, 64, 0, -1, -1, 0 }, - { "dbcls", false, 64, 0, -1, -1, 0 }, - { "dbload", false, 64, 0, -1, -1, 0 }, - { "plasma", false, 64, 0, -1, -1, 0 }, - { "bfg", false, 64, 0, -1, -1, 0 }, - { "sawup", false, 64, 0, -1, -1, 0 }, - { "sawidl", false, 118, 0, -1, -1, 0 }, - { "sawful", false, 64, 0, -1, -1, 0 }, - { "sawhit", false, 64, 0, -1, -1, 0 }, - { "rlaunc", false, 64, 0, -1, -1, 0 }, - { "rxplod", false, 70, 0, -1, -1, 0 }, - { "firsht", false, 70, 0, -1, -1, 0 }, - { "firxpl", false, 70, 0, -1, -1, 0 }, - { "pstart", false, 100, 0, -1, -1, 0 }, - { "pstop", false, 100, 0, -1, -1, 0 }, - { "doropn", false, 100, 0, -1, -1, 0 }, - { "dorcls", false, 100, 0, -1, -1, 0 }, - { "stnmov", false, 119, 0, -1, -1, 0 }, - { "swtchn", false, 78, 0, -1, -1, 0 }, - { "swtchx", false, 78, 0, -1, -1, 0 }, - { "plpain", false, 96, 0, -1, -1, 0 }, - { "dmpain", false, 96, 0, -1, -1, 0 }, - { "popain", false, 96, 0, -1, -1, 0 }, - { "vipain", false, 96, 0, -1, -1, 0 }, - { "mnpain", false, 96, 0, -1, -1, 0 }, - { "pepain", false, 96, 0, -1, -1, 0 }, - { "slop", false, 78, 0, -1, -1, 0 }, - { "itemup", true, 78, 0, -1, -1, 0 }, - { "wpnup", true, 78, 0, -1, -1, 0 }, - { "oof", false, 96, 0, -1, -1, 0 }, - { "telept", false, 32, 0, -1, -1, 0 }, - { "posit1", true, 98, 0, -1, -1, 0 }, - { "posit2", true, 98, 0, -1, -1, 0 }, - { "posit3", true, 98, 0, -1, -1, 0 }, - { "bgsit1", true, 98, 0, -1, -1, 0 }, - { "bgsit2", true, 98, 0, -1, -1, 0 }, - { "sgtsit", true, 98, 0, -1, -1, 0 }, - { "cacsit", true, 98, 0, -1, -1, 0 }, - { "brssit", true, 94, 0, -1, -1, 0 }, - { "cybsit", true, 92, 0, -1, -1, 0 }, - { "spisit", true, 90, 0, -1, -1, 0 }, - { "bspsit", true, 90, 0, -1, -1, 0 }, - { "kntsit", true, 90, 0, -1, -1, 0 }, - { "vilsit", true, 90, 0, -1, -1, 0 }, - { "mansit", true, 90, 0, -1, -1, 0 }, - { "pesit", true, 90, 0, -1, -1, 0 }, - { "sklatk", false, 70, 0, -1, -1, 0 }, - { "sgtatk", false, 70, 0, -1, -1, 0 }, - { "skepch", false, 70, 0, -1, -1, 0 }, - { "vilatk", false, 70, 0, -1, -1, 0 }, - { "claw", false, 70, 0, -1, -1, 0 }, - { "skeswg", false, 70, 0, -1, -1, 0 }, - { "pldeth", false, 32, 0, -1, -1, 0 }, - { "pdiehi", false, 32, 0, -1, -1, 0 }, - { "podth1", false, 70, 0, -1, -1, 0 }, - { "podth2", false, 70, 0, -1, -1, 0 }, - { "podth3", false, 70, 0, -1, -1, 0 }, - { "bgdth1", false, 70, 0, -1, -1, 0 }, - { "bgdth2", false, 70, 0, -1, -1, 0 }, - { "sgtdth", false, 70, 0, -1, -1, 0 }, - { "cacdth", false, 70, 0, -1, -1, 0 }, - { "skldth", false, 70, 0, -1, -1, 0 }, - { "brsdth", false, 32, 0, -1, -1, 0 }, - { "cybdth", false, 32, 0, -1, -1, 0 }, - { "spidth", false, 32, 0, -1, -1, 0 }, - { "bspdth", false, 32, 0, -1, -1, 0 }, - { "vildth", false, 32, 0, -1, -1, 0 }, - { "kntdth", false, 32, 0, -1, -1, 0 }, - { "pedth", false, 32, 0, -1, -1, 0 }, - { "skedth", false, 32, 0, -1, -1, 0 }, - { "posact", true, 120, 0, -1, -1, 0 }, - { "bgact", true, 120, 0, -1, -1, 0 }, - { "dmact", true, 120, 0, -1, -1, 0 }, - { "bspact", true, 100, 0, -1, -1, 0 }, - { "bspwlk", true, 100, 0, -1, -1, 0 }, - { "vilact", true, 100, 0, -1, -1, 0 }, - { "noway", false, 78, 0, -1, -1, 0 }, - { "barexp", false, 60, 0, -1, -1, 0 }, - { "punch", false, 64, 0, -1, -1, 0 }, - { "hoof", false, 70, 0, -1, -1, 0 }, - { "metal", false, 70, 0, -1, -1, 0 }, - { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0 }, - { "tink", false, 60, 0, -1, -1, 0 }, - { "bdopn", false, 100, 0, -1, -1, 0 }, - { "bdcls", false, 100, 0, -1, -1, 0 }, - { "itmbk", false, 100, 0, -1, -1, 0 }, - { "flame", false, 32, 0, -1, -1, 0 }, - { "flamst", false, 32, 0, -1, -1, 0 }, - { "getpow", false, 60, 0, -1, -1, 0 }, - { "bospit", false, 70, 0, -1, -1, 0 }, - { "boscub", false, 70, 0, -1, -1, 0 }, - { "bossit", false, 70, 0, -1, -1, 0 }, - { "bospn", false, 70, 0, -1, -1, 0 }, - { "bosdth", false, 70, 0, -1, -1, 0 }, - { "manatk", false, 70, 0, -1, -1, 0 }, - { "mandth", false, 70, 0, -1, -1, 0 }, - { "sssit", false, 70, 0, -1, -1, 0 }, - { "ssdth", false, 70, 0, -1, -1, 0 }, - { "keenpn", false, 70, 0, -1, -1, 0 }, - { "keendt", false, 70, 0, -1, -1, 0 }, - { "skeact", false, 70, 0, -1, -1, 0 }, - { "skesit", false, 70, 0, -1, -1, 0 }, - { "skeatk", false, 70, 0, -1, -1, 0 }, - { "radio", false, 60, 0, -1, -1, 0 } + { "pistol", false, 64, 0, -1, -1, 0, 0, 0 }, + { "shotgn", false, 64, 0, -1, -1, 0, 0, 0 }, + { "sgcock", false, 64, 0, -1, -1, 0, 0, 0 }, + { "dshtgn", false, 64, 0, -1, -1, 0, 0, 0 }, + { "dbopn", false, 64, 0, -1, -1, 0, 0, 0 }, + { "dbcls", false, 64, 0, -1, -1, 0, 0, 0 }, + { "dbload", false, 64, 0, -1, -1, 0, 0, 0 }, + { "plasma", false, 64, 0, -1, -1, 0, 0, 0 }, + { "bfg", false, 64, 0, -1, -1, 0, 0, 0 }, + { "sawup", false, 64, 0, -1, -1, 0, 0, 0 }, + { "sawidl", false, 118, 0, -1, -1, 0, 0, 0 }, + { "sawful", false, 64, 0, -1, -1, 0, 0, 0 }, + { "sawhit", false, 64, 0, -1, -1, 0, 0, 0 }, + { "rlaunc", false, 64, 0, -1, -1, 0, 0, 0 }, + { "rxplod", false, 70, 0, -1, -1, 0, 0, 0 }, + { "firsht", false, 70, 0, -1, -1, 0, 0, 0 }, + { "firxpl", false, 70, 0, -1, -1, 0, 0, 0 }, + { "pstart", false, 100, 0, -1, -1, 0, 0, 0 }, + { "pstop", false, 100, 0, -1, -1, 0, 0, 0 }, + { "doropn", false, 100, 0, -1, -1, 0, 0, 0 }, + { "dorcls", false, 100, 0, -1, -1, 0, 0, 0 }, + { "stnmov", false, 119, 0, -1, -1, 0, 0, 0 }, + { "swtchn", false, 78, 0, -1, -1, 0, 0, 0 }, + { "swtchx", false, 78, 0, -1, -1, 0, 0, 0 }, + { "plpain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "dmpain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "popain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "vipain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "mnpain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "pepain", false, 96, 0, -1, -1, 0, 0, 0 }, + { "slop", false, 78, 0, -1, -1, 0, 0, 0 }, + { "itemup", true, 78, 0, -1, -1, 0, 0, 0 }, + { "wpnup", true, 78, 0, -1, -1, 0, 0, 0 }, + { "oof", false, 96, 0, -1, -1, 0, 0, 0 }, + { "telept", false, 32, 0, -1, -1, 0, 0, 0 }, + { "posit1", true, 98, 0, -1, -1, 0, 0, 0 }, + { "posit2", true, 98, 0, -1, -1, 0, 0, 0 }, + { "posit3", true, 98, 0, -1, -1, 0, 0, 0 }, + { "bgsit1", true, 98, 0, -1, -1, 0, 0, 0 }, + { "bgsit2", true, 98, 0, -1, -1, 0, 0, 0 }, + { "sgtsit", true, 98, 0, -1, -1, 0, 0, 0 }, + { "cacsit", true, 98, 0, -1, -1, 0, 0, 0 }, + { "brssit", true, 94, 0, -1, -1, 0, 0, 0 }, + { "cybsit", true, 92, 0, -1, -1, 0, 0, 0 }, + { "spisit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "bspsit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "kntsit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "vilsit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "mansit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "pesit", true, 90, 0, -1, -1, 0, 0, 0 }, + { "sklatk", false, 70, 0, -1, -1, 0, 0, 0 }, + { "sgtatk", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skepch", false, 70, 0, -1, -1, 0, 0, 0 }, + { "vilatk", false, 70, 0, -1, -1, 0, 0, 0 }, + { "claw", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skeswg", false, 70, 0, -1, -1, 0, 0, 0 }, + { "pldeth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "pdiehi", false, 32, 0, -1, -1, 0, 0, 0 }, + { "podth1", false, 70, 0, -1, -1, 0, 0, 0 }, + { "podth2", false, 70, 0, -1, -1, 0, 0, 0 }, + { "podth3", false, 70, 0, -1, -1, 0, 0, 0 }, + { "bgdth1", false, 70, 0, -1, -1, 0, 0, 0 }, + { "bgdth2", false, 70, 0, -1, -1, 0, 0, 0 }, + { "sgtdth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "cacdth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skldth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "brsdth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "cybdth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "spidth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "bspdth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "vildth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "kntdth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "pedth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "skedth", false, 32, 0, -1, -1, 0, 0, 0 }, + { "posact", true, 120, 0, -1, -1, 0, 0, 0 }, + { "bgact", true, 120, 0, -1, -1, 0, 0, 0 }, + { "dmact", true, 120, 0, -1, -1, 0, 0, 0 }, + { "bspact", true, 100, 0, -1, -1, 0, 0, 0 }, + { "bspwlk", true, 100, 0, -1, -1, 0, 0, 0 }, + { "vilact", true, 100, 0, -1, -1, 0, 0, 0 }, + { "noway", false, 78, 0, -1, -1, 0, 0, 0 }, + { "barexp", false, 60, 0, -1, -1, 0, 0, 0 }, + { "punch", false, 64, 0, -1, -1, 0, 0, 0 }, + { "hoof", false, 70, 0, -1, -1, 0, 0, 0 }, + { "metal", false, 70, 0, -1, -1, 0, 0, 0 }, + { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0, 0, 0 }, + { "tink", false, 60, 0, -1, -1, 0, 0, 0 }, + { "bdopn", false, 100, 0, -1, -1, 0, 0, 0 }, + { "bdcls", false, 100, 0, -1, -1, 0, 0, 0 }, + { "itmbk", false, 100, 0, -1, -1, 0, 0, 0 }, + { "flame", false, 32, 0, -1, -1, 0, 0, 0 }, + { "flamst", false, 32, 0, -1, -1, 0, 0, 0 }, + { "getpow", false, 60, 0, -1, -1, 0, 0, 0 }, + { "bospit", false, 70, 0, -1, -1, 0, 0, 0 }, + { "boscub", false, 70, 0, -1, -1, 0, 0, 0 }, + { "bossit", false, 70, 0, -1, -1, 0, 0, 0 }, + { "bospn", false, 70, 0, -1, -1, 0, 0, 0 }, + { "bosdth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "manatk", false, 70, 0, -1, -1, 0, 0, 0 }, + { "mandth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "sssit", false, 70, 0, -1, -1, 0, 0, 0 }, + { "ssdth", false, 70, 0, -1, -1, 0, 0, 0 }, + { "keenpn", false, 70, 0, -1, -1, 0, 0, 0 }, + { "keendt", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skeact", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skesit", false, 70, 0, -1, -1, 0, 0, 0 }, + { "skeatk", false, 70, 0, -1, -1, 0, 0, 0 }, + { "radio", false, 60, 0, -1, -1, 0, 0, 0 } }; |