Revision: 5686
http://deng.svn.sourceforge.net/deng/?rev=5686&view=rev
Author: danij
Date: 2008-05-31 02:41:58 -0700 (Sat, 31 May 2008)
Log Message:
-----------
Made sound effect and music identifiers in the games upper-case, to match our style guidelines.
Modified Paths:
--------------
trunk/doomsday/plugins/common/src/d_net.c
trunk/doomsday/plugins/common/src/d_netsv.c
trunk/doomsday/plugins/common/src/hu_menu.c
trunk/doomsday/plugins/common/src/hu_msg.c
trunk/doomsday/plugins/common/src/p_ceiling.c
trunk/doomsday/plugins/common/src/p_door.c
trunk/doomsday/plugins/common/src/p_floor.c
trunk/doomsday/plugins/common/src/p_inventory.c
trunk/doomsday/plugins/common/src/p_map.c
trunk/doomsday/plugins/common/src/p_plat.c
trunk/doomsday/plugins/common/src/p_player.c
trunk/doomsday/plugins/common/src/p_start.c
trunk/doomsday/plugins/common/src/p_switch.c
trunk/doomsday/plugins/common/src/p_user.c
trunk/doomsday/plugins/common/src/p_xgline.c
trunk/doomsday/plugins/jdoom/include/sndidx.h
trunk/doomsday/plugins/jdoom/src/d_items.c
trunk/doomsday/plugins/jdoom/src/m_cheat.c
trunk/doomsday/plugins/jdoom/src/p_enemy.c
trunk/doomsday/plugins/jdoom/src/p_inter.c
trunk/doomsday/plugins/jdoom/src/p_mobj.c
trunk/doomsday/plugins/jdoom/src/p_pspr.c
trunk/doomsday/plugins/jdoom/src/p_sound.c
trunk/doomsday/plugins/jdoom/src/p_spec.c
trunk/doomsday/plugins/jdoom/src/p_telept.c
trunk/doomsday/plugins/jdoom/src/wi_stuff.c
trunk/doomsday/plugins/jdoom64/include/sndidx.h
trunk/doomsday/plugins/jdoom64/src/d_items.c
trunk/doomsday/plugins/jdoom64/src/m_cheat.c
trunk/doomsday/plugins/jdoom64/src/p_enemy.c
trunk/doomsday/plugins/jdoom64/src/p_inter.c
trunk/doomsday/plugins/jdoom64/src/p_mobj.c
trunk/doomsday/plugins/jdoom64/src/p_pspr.c
trunk/doomsday/plugins/jdoom64/src/p_sound.c
trunk/doomsday/plugins/jdoom64/src/p_spec.c
trunk/doomsday/plugins/jdoom64/src/p_telept.c
trunk/doomsday/plugins/jdoom64/src/wi_stuff.c
trunk/doomsday/plugins/jheretic/include/sounds.h
trunk/doomsday/plugins/jheretic/src/in_lude.c
trunk/doomsday/plugins/jheretic/src/m_cheat.c
trunk/doomsday/plugins/jheretic/src/p_enemy.c
trunk/doomsday/plugins/jheretic/src/p_inter.c
trunk/doomsday/plugins/jheretic/src/p_mobj.c
trunk/doomsday/plugins/jheretic/src/p_pspr.c
trunk/doomsday/plugins/jheretic/src/p_spec.c
trunk/doomsday/plugins/jheretic/src/p_telept.c
trunk/doomsday/plugins/jheretic/src/st_stuff.c
trunk/doomsday/plugins/jhexen/src/p_telept.c
Modified: trunk/doomsday/plugins/common/src/d_net.c
===================================================================
--- trunk/doomsday/plugins/common/src/d_net.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/d_net.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -567,14 +567,14 @@
#elif __JSTRIFE__
S_LocalSound(SFX_CHAT, NULL);
#elif __JHERETIC__
- S_LocalSound(sfx_chat, NULL);
+ S_LocalSound(SFX_CHAT, NULL);
#else
# if __JDOOM__
if(gameMode == commercial)
- S_LocalSound(sfx_radio, NULL);
+ S_LocalSound(SFX_RADIO, NULL);
else
# endif
- S_LocalSound(sfx_tink, NULL);
+ S_LocalSound(SFX_TINK, NULL);
#endif
}
Modified: trunk/doomsday/plugins/common/src/d_netsv.c
===================================================================
--- trunk/doomsday/plugins/common/src/d_netsv.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/d_netsv.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -71,9 +71,9 @@
#if __JHEXEN__ || __JSTRIFE__
# define SOUND_COUNTDOWN SFX_PICKUP_KEY
#elif __JDOOM__ || __JDOOM64__
-# define SOUND_COUNTDOWN sfx_getpow
+# define SOUND_COUNTDOWN SFX_GETPOW
#elif __JHERETIC__
-# define SOUND_COUNTDOWN sfx_keyup
+# define SOUND_COUNTDOWN SFX_KEYUP
#endif
#define SOUND_VICTORY SOUND_COUNTDOWN
Modified: trunk/doomsday/plugins/common/src/hu_menu.c
===================================================================
--- trunk/doomsday/plugins/common/src/hu_menu.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/hu_menu.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -306,29 +306,29 @@
// Sounds played in the menu
int menusnds[] = {
#if __WOLFTC__
- sfx_menubc, // close menu
- sfx_menubc, // open menu
- sfx_menubc, // cancel
- sfx_menumv, // up/down
- sfx_menumv, // left/right
- sfx_menusl, // accept
- sfx_menumv // bad sound (eg can't autosave)
+ SFX_MENUBC, // close menu
+ SFX_MENUBC, // open menu
+ SFX_MENUBC, // cancel
+ SFX_MENUMV, // up/down
+ SFX_MENUMV, // left/right
+ SFX_MENUSL, // accept
+ SFX_MENUMV // bad sound (eg can't autosave)
#elif __JDOOM__ || __JDOOM64__
- sfx_dorcls, // close menu
- sfx_swtchx, // open menu
- sfx_swtchn, // cancel
- sfx_pstop, // up/down
- sfx_stnmov, // left/right
- sfx_pistol, // accept
- sfx_oof // bad sound (eg can't autosave)
+ SFX_DORCLS, // close menu
+ SFX_SWTCHX, // open menu
+ SFX_SWTCHN, // cancel
+ SFX_PSTOP, // up/down
+ SFX_STNMOV, // left/right
+ SFX_PISTOL, // accept
+ SFX_OOF // bad sound (eg can't autosave)
#elif __JHERETIC__
- sfx_switch,
- sfx_chat,
- sfx_switch,
- sfx_switch,
- sfx_stnmov,
- sfx_chat,
- sfx_chat
+ SFX_SWITCH,
+ SFX_CHAT,
+ SFX_SWITCH,
+ SFX_SWITCH,
+ SFX_STNMOV,
+ SFX_CHAT,
+ SFX_CHAT
#elif __JHEXEN__
SFX_PLATFORM_STOP,
SFX_DOOR_LIGHT_CLOSE,
@@ -932,7 +932,9 @@
64, 30,
#endif
M_DrawHUDMenu,
-#if __JHEXEN__ || __JSTRIFE__
+#if __WOLFTC__
+ 13, HUDItems,
+#elif __JHEXEN__ || __JSTRIFE__
23, HUDItems,
#elif __JHERETIC__
25, HUDItems,
@@ -946,7 +948,9 @@
cfg.menuColor2,
NULL,
LINEHEIGHT_A,
-#if __JHEXEN__ || __JSTRIFE__
+#if __WOLFTC__
+ 0, 13
+#elif __JHEXEN__ || __JSTRIFE__
0, 15 // 21
#elif __JHERETIC__
0, 15 // 23
@@ -3217,8 +3221,10 @@
M_WriteMenuText(menu, idx++, yesno[cfg.hudShown[HUD_HEALTH]]);
M_WriteMenuText(menu, idx++, yesno[cfg.hudShown[HUD_KEYS]]);
# if __JDOOM__
+# if !__WOLFTC__
M_WriteMenuText(menu, idx++, yesno[cfg.hudKeysCombine]);
# endif
+# endif
MN_DrawSlider(menu, idx++, 10, cfg.hudScale * 10 - 3 + .5f);
MN_DrawColorBox(menu, idx++, cfg.hudColor[0], cfg.hudColor[1],
cfg.hudColor[2], menuAlpha);
@@ -3394,24 +3400,24 @@
{
#if __JDOOM__ || __JDOOM64__
static int quitsounds[8] = {
- sfx_pldeth,
- sfx_dmpain,
- sfx_popain,
- sfx_slop,
- sfx_telept,
- sfx_posit1,
- sfx_posit3,
- sfx_sgtatk
+ SFX_PLDETH,
+ SFX_DMPAIN,
+ SFX_POPAIN,
+ SFX_SLOP,
+ SFX_TELEPT,
+ SFX_POSIT1,
+ SFX_POSIT3,
+ SFX_SGTATK
};
static int quitsounds2[8] = {
- sfx_vilact,
- sfx_getpow,
- sfx_boscub,
- sfx_slop,
- sfx_skeswg,
- sfx_kntdth,
- sfx_bspact,
- sfx_sgtatk
+ SFX_VILACT,
+ SFX_GETPOW,
+ SFX_BOSCUB,
+ SFX_SLOP,
+ SFX_SKESWG,
+ SFX_KNTDTH,
+ SFX_BSPACT,
+ SFX_SGTATK
};
#endif
Modified: trunk/doomsday/plugins/common/src/hu_msg.c
===================================================================
--- trunk/doomsday/plugins/common/src/hu_msg.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/hu_msg.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -723,16 +723,16 @@
#if __WOLFTC__
if(gameMode == commercial)
- S_LocalSound(sfx_hudms1, 0);
+ S_LocalSound(SFX_HUDMS1, 0);
else
- S_LocalSound(sfx_hudms2, 0);
+ S_LocalSound(SFX_HUDMS2, 0);
#elif __JDOOM__
if(gameMode == commercial)
- S_LocalSound(sfx_radio, 0);
+ S_LocalSound(SFX_RADIO, 0);
else
- S_LocalSound(sfx_tink, 0);
+ S_LocalSound(SFX_TINK, 0);
#elif __JDOOM64__
- S_LocalSound(sfx_radio, 0);
+ S_LocalSound(SFX_RADIO, 0);
#endif
}
Modified: trunk/doomsday/plugins/common/src/p_ceiling.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_ceiling.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_ceiling.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -65,19 +65,19 @@
// MACROS ------------------------------------------------------------------
// Sounds played by the ceilings when changing state or moving.
-// jHexen uses sound sequences, so it's are defined as 'sfx_None'.
+// jHexen uses sound sequences, so it's are defined as 'SFX_NONE'.
#if __WOLFTC__
-# define SFX_CEILINGMOVE (sfx_pltmov)
-# define SFX_CEILINGSTOP (sfx_pltstp)
+# define SFX_CEILINGMOVE (SFX_PLTMOV)
+# define SFX_CEILINGSTOP (SFX_PLTSTP)
#elif __JDOOM__
-# define SFX_CEILINGMOVE (sfx_stnmov)
-# define SFX_CEILINGSTOP (sfx_pstop)
+# define SFX_CEILINGMOVE (SFX_STNMOV)
+# define SFX_CEILINGSTOP (SFX_PSTOP)
#elif __JDOOM64__
-# define SFX_CEILINGMOVE (sfx_stnmov)
-# define SFX_CEILINGSTOP (sfx_pstop)
+# define SFX_CEILINGMOVE (SFX_STNMOV)
+# define SFX_CEILINGSTOP (SFX_PSTOP)
#elif __JHERETIC__
-# define SFX_CEILINGMOVE (sfx_dormov)
-# define SFX_CEILINGSTOP (sfx_none)
+# define SFX_CEILINGMOVE (SFX_DORMOV)
+# define SFX_CEILINGSTOP (SFX_NONE)
#elif __JHEXEN__
# define SFX_CEILINGMOVE (SFX_NONE)
# define SFX_CEILINGSTOP (SFX_NONE)
Modified: trunk/doomsday/plugins/common/src/p_door.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_door.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_door.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -68,31 +68,31 @@
// MACROS ------------------------------------------------------------------
// Sounds played by the doors when changing state.
-// jHexen uses sound sequences, so it's are defined as 'sfx_None'.
+// jHexen uses sound sequences, so it's are defined as 'SFX_NONE'.
#if __JDOOM64__
-# define SFX_DOORCLOSE (sfx_dorcls)
-# define SFX_DOORBLAZECLOSE (sfx_bdcls)
-# define SFX_DOOROPEN (sfx_doropn)
-# define SFX_DOORBLAZEOPEN (sfx_bdopn)
-# define SFX_DOORLOCKED (sfx_oof)
+# define SFX_DOORCLOSE (SFX_DORCLS)
+# define SFX_DOORBLAZECLOSE (SFX_BDCLS)
+# define SFX_DOOROPEN (SFX_DOROPN)
+# define SFX_DOORBLAZEOPEN (SFX_BDOPN)
+# define SFX_DOORLOCKED (SFX_OOF)
#elif __WOLFTC__
-# define SFX_DOORCLOSE (sfx_wlfdrc)
-# define SFX_DOORBLAZECLOSE (sfx_wlfpwl)
-# define SFX_DOOROPEN (sfx_wlfdro)
-# define SFX_DOORBLAZEOPEN (sfx_wlfpwl)
-# define SFX_DOORLOCKED (sfx_dorlck)
+# define SFX_DOORCLOSE (SFX_WLFDRC)
+# define SFX_DOORBLAZECLOSE (SFX_WLFPWL)
+# define SFX_DOOROPEN (SFX_WLFDRO)
+# define SFX_DOORBLAZEOPEN (SFX_WLFPWL)
+# define SFX_DOORLOCKED (SFX_DORLCK)
#elif __JDOOM__
-# define SFX_DOORCLOSE (sfx_dorcls)
-# define SFX_DOORBLAZECLOSE (sfx_bdcls)
-# define SFX_DOOROPEN (sfx_doropn)
-# define SFX_DOORBLAZEOPEN (sfx_bdopn)
-# define SFX_DOORLOCKED (sfx_oof)
+# define SFX_DOORCLOSE (SFX_DORCLS)
+# define SFX_DOORBLAZECLOSE (SFX_BDCLS)
+# define SFX_DOOROPEN (SFX_DOROPN)
+# define SFX_DOORBLAZEOPEN (SFX_BDOPN)
+# define SFX_DOORLOCKED (SFX_OOF)
#elif __JHERETIC__
-# define SFX_DOORCLOSE (sfx_doropn)
-# define SFX_DOORBLAZECLOSE (sfx_None)
-# define SFX_DOOROPEN (sfx_doropn)
-# define SFX_DOORBLAZEOPEN (sfx_doropn)
-# define SFX_DOORLOCKED (sfx_plroof)
+# define SFX_DOORCLOSE (SFX_DOROPN)
+# define SFX_DOORBLAZECLOSE (SFX_NONE)
+# define SFX_DOOROPEN (SFX_DOROPN)
+# define SFX_DOORBLAZEOPEN (SFX_DOROPN)
+# define SFX_DOORLOCKED (SFX_PLROOF)
#elif __JHEXEN__
# define SFX_DOORCLOSE (SFX_NONE)
# define SFX_DOORBLAZECLOSE (SFX_NONE)
@@ -242,7 +242,7 @@
{
// DOOMII BUG:
// The switch bellow SHOULD(?) play the blazing open sound if
- // the door type is blazing and not sfx_doropn.
+ // the door type is blazing and not SFX_DOROPN.
switch(door->type)
{
#if __JDOOM__ || __JDOOM64__ || __WOLFTC__
Modified: trunk/doomsday/plugins/common/src/p_floor.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_floor.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_floor.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -68,11 +68,11 @@
// MACROS ------------------------------------------------------------------
#if __WOLFTC__
-# define SFX_FLOORMOVE (sfx_pltstr)
+# define SFX_FLOORMOVE (SFX_PLTSTR)
#elif __JHERETIC__
-# define SFX_FLOORMOVE (sfx_dormov)
+# define SFX_FLOORMOVE (SFX_DORMOV)
#else
-# define SFX_FLOORMOVE (sfx_stnmov)
+# define SFX_FLOORMOVE (SFX_STNMOV)
#endif
#if __JHEXEN__
@@ -390,12 +390,12 @@
SN_StopSequence(P_GetPtrp(floor->sector, DMU_SOUND_ORIGIN));
#else
# if __WOLFTC__
- S_SectorSound(floor->sector, SORG_FLOOR, sfx_pltstp);
+ S_SectorSound(floor->sector, SORG_FLOOR, SFX_PLTSTP);
# else
# if __JHERETIC__
if(floor->type == FT_RAISEBUILDSTEP)
# endif
- S_SectorSound(floor->sector, SORG_FLOOR, sfx_pstop);
+ S_SectorSound(floor->sector, SORG_FLOOR, SFX_PSTOP);
# endif
#endif
#if __JHEXEN__
Modified: trunk/doomsday/plugins/common/src/p_inventory.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_inventory.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_inventory.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -330,7 +330,7 @@
# if __JHERETIC__
if(play_sound)
- S_ConsoleSound(sfx_artiuse, NULL, player - players);
+ S_ConsoleSound(SFX_ARTIUSE, NULL, player - players);
# endif
return success;
@@ -407,7 +407,7 @@
else
{ // Succeeded.
player->morphTics = 0;
- S_StartSound(sfx_wpnup, player->plr->mo);
+ S_StartSound(SFX_WPNUP, player->plr->mo);
}
}
else
Modified: trunk/doomsday/plugins/common/src/p_map.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_map.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_map.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -765,7 +765,7 @@
P_RipperBlood(tmThing);
}
#if __JHERETIC__
- S_StartSound(sfx_ripslop, tmThing);
+ S_StartSound(SFX_RIPSLOP, tmThing);
#endif
#if __JDOOM__
if(tmThing->damage == DDMAXINT) //// \kludge to support old save games.
@@ -1655,7 +1655,7 @@
{
// Make blaster big puff.
mobj_t *mo = P_SpawnMobj3fv(MT_BLASTERPUFF2, pos);
- S_StartSound(sfx_blshit, mo);
+ S_StartSound(SFX_BLSHIT, mo);
}
else
P_SpawnPuff(pos[VX], pos[VY], pos[VZ]);
@@ -2510,7 +2510,7 @@
//// \fixme kaiser - the def file is too fucked up..
//// DJS - FIXME!
P_MobjChangeState(thing, S_HEADCANDLES + 3);
- S_StartSound(sfx_slop, thing);
+ S_StartSound(SFX_SLOP, thing);
# elif __JDOOM__
P_MobjChangeState(thing, S_GIBS);
# endif
Modified: trunk/doomsday/plugins/common/src/p_plat.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_plat.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_plat.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -64,23 +64,23 @@
// MACROS ------------------------------------------------------------------
// Sounds played by the platforms when changing state or moving.
-// jHexen uses sound sequences, so it's are defined as 'sfx_None'.
+// jHexen uses sound sequences, so it's are defined as 'SFX_NONE'.
#if __WOLFTC__
-# define SFX_PLATFORMSTART (sfx_pltstr)
-# define SFX_PLATFORMMOVE (sfx_pltmov)
-# define SFX_PLATFORMSTOP (sfx_pltstp)
+# define SFX_PLATFORMSTART (SFX_PLTSTR)
+# define SFX_PLATFORMMOVE (SFX_PLTMOV)
+# define SFX_PLATFORMSTOP (SFX_PLTSTP)
#elif __JDOOM__
-# define SFX_PLATFORMSTART (sfx_pstart)
-# define SFX_PLATFORMMOVE (sfx_stnmov)
-# define SFX_PLATFORMSTOP (sfx_pstop)
+# define SFX_PLATFORMSTART (SFX_PSTART)
+# define SFX_PLATFORMMOVE (SFX_STNMOV)
+# define SFX_PLATFORMSTOP (SFX_PSTOP)
#elif __JDOOM64__
-# define SFX_PLATFORMSTART (sfx_pstart)
-# define SFX_PLATFORMMOVE (sfx_stnmov)
-# define SFX_PLATFORMSTOP (sfx_pstop)
+# define SFX_PLATFORMSTART (SFX_PSTART)
+# define SFX_PLATFORMMOVE (SFX_STNMOV)
+# define SFX_PLATFORMSTOP (SFX_PSTOP)
#elif __JHERETIC__
-# define SFX_PLATFORMSTART (sfx_pstart)
-# define SFX_PLATFORMMOVE (sfx_stnmov)
-# define SFX_PLATFORMSTOP (sfx_pstop)
+# define SFX_PLATFORMSTART (SFX_PSTART)
+# define SFX_PLATFORMMOVE (SFX_STNMOV)
+# define SFX_PLATFORMSTOP (SFX_PSTOP)
#elif __JHEXEN__
# define SFX_PLATFORMSTART (SFX_NONE)
# define SFX_PLATFORMMOVE (SFX_NONE)
Modified: trunk/doomsday/plugins/common/src/p_player.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_player.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_player.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -867,13 +867,13 @@
// jd64 > kaiser - another cheesy hack!!!
if(mo->type == MT_DART || mo->type == MT_RDART)
{
- S_StartSound(sfx_skeswg, mo); // We got darts! spawn skeswg sound!
+ S_StartSound(SFX_SKESWG, mo); // We got darts! spawn skeswg sound!
}
else
{
mo->translucency = 255;
- S_StartSound(sfx_itmbk, mo); // If not dart, then spawn itmbk sound
+ S_StartSound(SFX_ITMBK, mo); // If not dart, then spawn itmbk sound
mo->intFlags = MIF_FADE;
mo->translucency = 255;
}
Modified: trunk/doomsday/plugins/common/src/p_start.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_start.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_start.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -64,7 +64,7 @@
// MACROS ------------------------------------------------------------------
#if __JDOOM__ || __JDOOM64__ || __JHERETIC__
-# define TELEPORTSOUND sfx_telept
+# define TELEPORTSOUND SFX_TELEPT
# define MAX_START_SPOTS 4 // Maximum number of different player starts.
#else
# define TELEPORTSOUND SFX_TELEPORT
Modified: trunk/doomsday/plugins/common/src/p_switch.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_switch.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_switch.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -363,9 +363,9 @@
#if !__JHEXEN__
# if __JHERETIC__ || __WOLFTC__
- sound = sfx_switch;
+ sound = SFX_SWITCH;
# else
- sound = sfx_swtchn;
+ sound = SFX_SWTCHN;
#endif
// EXIT SWITCH?
@@ -373,9 +373,9 @@
if(P_ToXLine(line)->special == 11)
{
# if __WOLFTC__
- sound = sfx_wfeswi;
+ sound = SFX_WFESWI;
# else
- sound = sfx_swtchx;
+ sound = SFX_SWTCHX;
# endif
}
# endif
Modified: trunk/doomsday/plugins/common/src/p_user.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_user.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_user.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -1,4 +1,4 @@
-/**
+/**\file
*\section License
* License: GPL + jHeretic/jHexen Exception
*
@@ -115,9 +115,9 @@
{640, 1280, 320},
24,
# if __WOLFTC__
- sfx_blockd
+ SFX_BLOCKD
# else
- sfx_noway
+ SFX_NOWAY
# endif
}
};
@@ -135,7 +135,7 @@
2048,
{640, 1280, 320},
24,
- sfx_None
+ SFX_NONE
},
{ // Chicken
S_CHICPLAY,
@@ -149,7 +149,7 @@
2500,
{640, 1280, 320},
24,
- sfx_None
+ SFX_NONE
},
};
#elif __JHEXEN__
@@ -694,7 +694,7 @@
if(P_Random() < 48)
{ // Just noise.
- S_StartSound(sfx_chicact, pmo);
+ S_StartSound(SFX_CHICACT, pmo);
}
# endif
}
@@ -801,7 +801,7 @@
pos[VY] + 20 * FIX2FLT(finesine[angle]),
pos[VZ] + TELEFOGHEIGHT);
# if __JHERETIC__
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
# else
S_StartSound(SFX_TELEPORT, fog);
# endif
Modified: trunk/doomsday/plugins/common/src/p_xgline.c
===================================================================
--- trunk/doomsday/plugins/common/src/p_xgline.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/common/src/p_xgline.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -2156,12 +2156,12 @@
"BLUE SKULL KEY", "YELLOW SKULL KEY", "RED SKULL KEY"
};
int *keys = (int *) act->keys;
- int badsound = sfx_oof;
+ int badsound = SFX_OOF;
#elif __JHERETIC__
int num = 3;
char *keystr[] = { "YELLOW KEY", "GREEN KEY", "BLUE KEY" };
boolean *keys = act->keys;
- int badsound = sfx_plroof;
+ int badsound = SFX_PLROOF;
#elif __JSTRIFE__
//// \fixme FIXME!!!
int num = 3;
Modified: trunk/doomsday/plugins/jdoom/include/sndidx.h
===================================================================
--- trunk/doomsday/plugins/jdoom/include/sndidx.h 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/include/sndidx.h 2008-05-31 09:41:58 UTC (rev 5686)
@@ -4,7 +4,7 @@
* Online License Link: http://www.gnu.org/licenses/gpl.html
*
*\author Copyright © 2003-2007 Jaakko Keränen <jaakko.keranen@...>
- *\author Copyright © 2006-2007 Daniel Swanson <danij@...>
+ *\author Copyright © 2006-2008 Daniel Swanson <danij@...>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,191 +33,191 @@
// Sounds.
typedef enum {
- sfx_None, // 000
- sfx_pistol, // 001
- sfx_shotgn, // 002
- sfx_sgcock, // 003
- sfx_dshtgn, // 004
- sfx_dbopn, // 005
- sfx_dbcls, // 006
- sfx_dbload, // 007
- sfx_plasma, // 008
- sfx_bfg, // 009
- sfx_sawup, // 010
- sfx_sawidl, // 011
- sfx_sawful, // 012
- sfx_sawhit, // 013
- sfx_rlaunc, // 014
- sfx_rxplod, // 015
- sfx_firsht, // 016
- sfx_firxpl, // 017
- sfx_pstart, // 018
- sfx_pstop, // 019
- sfx_doropn, // 020
- sfx_dorcls, // 021
- sfx_stnmov, // 022
- sfx_swtchn, // 023
- sfx_swtchx, // 024
- sfx_plpain, // 025
- sfx_dmpain, // 026
- sfx_popain, // 027
- sfx_vipain, // 028
- sfx_mnpain, // 029
- sfx_pepain, // 030
- sfx_slop, // 031
- sfx_itemup, // 032
- sfx_wpnup, // 033
- sfx_oof, // 034
- sfx_telept, // 035
- sfx_posit1, // 036
- sfx_posit2, // 037
- sfx_posit3, // 038
- sfx_bgsit1, // 039
- sfx_bgsit2, // 040
- sfx_sgtsit, // 041
- sfx_cacsit, // 042
- sfx_brssit, // 043
- sfx_cybsit, // 044
- sfx_spisit, // 045
- sfx_bspsit, // 046
- sfx_kntsit, // 047
- sfx_vilsit, // 048
- sfx_mansit, // 049
- sfx_pesit, // 050
- sfx_sklatk, // 051
- sfx_sgtatk, // 052
- sfx_skepch, // 053
- sfx_vilatk, // 054
- sfx_claw, // 055
- sfx_skeswg, // 056
- sfx_pldeth, // 057
- sfx_pdiehi, // 058
- sfx_podth1, // 059
- sfx_podth2, // 060
- sfx_podth3, // 061
- sfx_bgdth1, // 062
- sfx_bgdth2, // 063
- sfx_sgtdth, // 064
- sfx_cacdth, // 065
- sfx_skldth, // 066
- sfx_brsdth, // 067
- sfx_cybdth, // 068
- sfx_spidth, // 069
- sfx_bspdth, // 070
- sfx_vildth, // 071
- sfx_kntdth, // 072
- sfx_pedth, // 073
- sfx_skedth, // 074
- sfx_posact, // 075
- sfx_bgact, // 076
- sfx_dmact, // 077
- sfx_bspact, // 078
- sfx_bspwlk, // 079
- sfx_vilact, // 080
- sfx_noway, // 081
- sfx_barexp, // 082
- sfx_punch, // 083
- sfx_hoof, // 084
- sfx_metal, // 085
- sfx_chgun, // 086
- sfx_tink, // 087
- sfx_bdopn, // 088
- sfx_bdcls, // 089
- sfx_itmbk, // 090
- sfx_flame, // 091
- sfx_flamst, // 092
- sfx_getpow, // 093
- sfx_bospit, // 094
- sfx_boscub, // 095
- sfx_bossit, // 096
- sfx_bospn, // 097
- sfx_bosdth, // 098
- sfx_manatk, // 099
- sfx_mandth, // 100
- sfx_sssit, // 101
- sfx_ssdth, // 102
- sfx_keenpn, // 103
- sfx_keendt, // 104
- sfx_skeact, // 105
- sfx_skesit, // 106
- sfx_skeatk, // 107
- sfx_radio, // 108
- sfx_wsplash, // 109
- sfx_nsplash, // 110
- sfx_blurb, // 111
+ SFX_NONE, // 000
+ SFX_PISTOL, // 001
+ SFX_SHOTGN, // 002
+ SFX_SGCOCK, // 003
+ SFX_DSHTGN, // 004
+ SFX_DBOPN, // 005
+ SFX_DBCLS, // 006
+ SFX_DBLOAD, // 007
+ SFX_PLASMA, // 008
+ SFX_BFG, // 009
+ SFX_SAWUP, // 010
+ SFX_SAWIDL, // 011
+ SFX_SAWFUL, // 012
+ SFX_SAWHIT, // 013
+ SFX_RLAUNC, // 014
+ SFX_RXPLOD, // 015
+ SFX_FIRSHT, // 016
+ SFX_FIRXPL, // 017
+ SFX_PSTART, // 018
+ SFX_PSTOP, // 019
+ SFX_DOROPN, // 020
+ SFX_DORCLS, // 021
+ SFX_STNMOV, // 022
+ SFX_SWTCHN, // 023
+ SFX_SWTCHX, // 024
+ SFX_PLPAIN, // 025
+ SFX_DMPAIN, // 026
+ SFX_POPAIN, // 027
+ SFX_VIPAIN, // 028
+ SFX_MNPAIN, // 029
+ SFX_PEPAIN, // 030
+ SFX_SLOP, // 031
+ SFX_ITEMUP, // 032
+ SFX_WPNUP, // 033
+ SFX_OOF, // 034
+ SFX_TELEPT, // 035
+ SFX_POSIT1, // 036
+ SFX_POSIT2, // 037
+ SFX_POSIT3, // 038
+ SFX_BGSIT1, // 039
+ SFX_BGSIT2, // 040
+ SFX_SGTSIT, // 041
+ SFX_CACSIT, // 042
+ SFX_BRSSIT, // 043
+ SFX_CYBSIT, // 044
+ SFX_SPISIT, // 045
+ SFX_BSPSIT, // 046
+ SFX_KNTSIT, // 047
+ SFX_VILSIT, // 048
+ SFX_MANSIT, // 049
+ SFX_PESIT, // 050
+ SFX_SKLATK, // 051
+ SFX_SGTATK, // 052
+ SFX_SKEPCH, // 053
+ SFX_VILATK, // 054
+ SFX_CLAW, // 055
+ SFX_SKESWG, // 056
+ SFX_PLDETH, // 057
+ SFX_PDIEHI, // 058
+ SFX_PODTH1, // 059
+ SFX_PODTH2, // 060
+ SFX_PODTH3, // 061
+ SFX_BGDTH1, // 062
+ SFX_BGDTH2, // 063
+ SFX_SGTDTH, // 064
+ SFX_CACDTH, // 065
+ SFX_SKLDTH, // 066
+ SFX_BRSDTH, // 067
+ SFX_CYBDTH, // 068
+ SFX_SPIDTH, // 069
+ SFX_BSPDTH, // 070
+ SFX_VILDTH, // 071
+ SFX_KNTDTH, // 072
+ SFX_PEDTH, // 073
+ SFX_SKEDTH, // 074
+ SFX_POSACT, // 075
+ SFX_BGACT, // 076
+ SFX_DMACT, // 077
+ SFX_BSPACT, // 078
+ SFX_BSPWLK, // 079
+ SFX_VILACT, // 080
+ SFX_NOWAY, // 081
+ SFX_BAREXP, // 082
+ SFX_PUNCH, // 083
+ SFX_HOOF, // 084
+ SFX_METAL, // 085
+ SFX_CHGUN, // 086
+ SFX_TINK, // 087
+ SFX_BDOPN, // 088
+ SFX_BDCLS, // 089
+ SFX_ITMBK, // 090
+ SFX_FLAME, // 091
+ SFX_FLAMST, // 092
+ SFX_GETPOW, // 093
+ SFX_BOSPIT, // 094
+ SFX_BOSCUB, // 095
+ SFX_BOSSIT, // 096
+ SFX_BOSPN, // 097
+ SFX_BOSDTH, // 098
+ SFX_MANATK, // 099
+ SFX_MANDTH, // 100
+ SFX_SSSIT, // 101
+ SFX_SSDTH, // 102
+ SFX_KEENPN, // 103
+ SFX_KEENDT, // 104
+ SFX_SKEACT, // 105
+ SFX_SKESIT, // 106
+ SFX_SKEATK, // 107
+ SFX_RADIO, // 108
+ SFX_WSPLASH, // 109
+ SFX_NSPLASH, // 110
+ SFX_BLURB, // 111
NUMSFX // 112
} sfxenum_t;
// Music.
typedef enum {
- mus_None, // 000
- mus_e1m1, // 001
- mus_e1m2, // 002
- mus_e1m3, // 003
- mus_e1m4, // 004
- mus_e1m5, // 005
- mus_e1m6, // 006
- mus_e1m7, // 007
- mus_e1m8, // 008
- mus_e1m9, // 009
- mus_e2m1, // 010
- mus_e2m2, // 011
- mus_e2m3, // 012
- mus_e2m4, // 013
- mus_e2m5, // 014
- mus_e2m6, // 015
- mus_e2m7, // 016
- mus_e2m8, // 017
- mus_e2m9, // 018
- mus_e3m1, // 019
- mus_e3m2, // 020
- mus_e3m3, // 021
- mus_e3m4, // 022
- mus_e3m5, // 023
- mus_e3m6, // 024
- mus_e3m7, // 025
- mus_e3m8, // 026
- mus_e3m9, // 027
- mus_inter, // 028
- mus_intro, // 029
- mus_bunny, // 030
- mus_victor, // 031
- mus_introa, // 032
- mus_runnin, // 033
- mus_stalks, // 034
- mus_countd, // 035
- mus_betwee, // 036
- mus_doom, // 037
- mus_the_da, // 038
- mus_shawn, // 039
- mus_ddtblu, // 040
- mus_in_cit, // 041
- mus_dead, // 042
- mus_stlks2, // 043
- mus_theda2, // 044
- mus_doom2, // 045
- mus_ddtbl2, // 046
- mus_runni2, // 047
- mus_dead2, // 048
- mus_stlks3, // 049
- mus_romero, // 050
- mus_shawn2, // 051
- mus_messag, // 052
- mus_count2, // 053
- mus_ddtbl3, // 054
- mus_ampie, // 055
- mus_theda3, // 056
- mus_adrian, // 057
- mus_messg2, // 058
- mus_romer2, // 059
- mus_tense, // 060
- mus_shawn3, // 061
- mus_openin, // 062
- mus_evil, // 063
- mus_ultima, // 064
- mus_read_m, // 065
- mus_dm2ttl, // 066
- mus_dm2int, // 067
+ MUS_NONE, // 000
+ MUS_E1M1, // 001
+ MUS_E1M2, // 002
+ MUS_E1M3, // 003
+ MUS_E1M4, // 004
+ MUS_E1M5, // 005
+ MUS_E1M6, // 006
+ MUS_E1M7, // 007
+ MUS_E1M8, // 008
+ MUS_E1M9, // 009
+ MUS_E2M1, // 010
+ MUS_E2M2, // 011
+ MUS_E2M3, // 012
+ MUS_E2M4, // 013
+ MUS_E2M5, // 014
+ MUS_E2M6, // 015
+ MUS_E2M7, // 016
+ MUS_E2M8, // 017
+ MUS_E2M9, // 018
+ MUS_E3M1, // 019
+ MUS_E3M2, // 020
+ MUS_E3M3, // 021
+ MUS_E3M4, // 022
+ MUS_E3M5, // 023
+ MUS_E3M6, // 024
+ MUS_E3M7, // 025
+ MUS_E3M8, // 026
+ MUS_E3M9, // 027
+ MUS_INTER, // 028
+ MUS_INTRO, // 029
+ MUS_BUNNY, // 030
+ MUS_VICTOR, // 031
+ MUS_INTROA, // 032
+ MUS_RUNNIN, // 033
+ MUS_STALKS, // 034
+ MUS_COUNTD, // 035
+ MUS_BETWEE, // 036
+ MUS_DOOM, // 037
+ MUS_THE_DA, // 038
+ MUS_SHAWN, // 039
+ MUS_DDTBLU, // 040
+ MUS_IN_CIT, // 041
+ MUS_DEAD, // 042
+ MUS_STLKS2, // 043
+ MUS_THEDA2, // 044
+ MUS_DOOM2, // 045
+ MUS_DDTBL2, // 046
+ MUS_RUNNI2, // 047
+ MUS_DEAD2, // 048
+ MUS_STLKS3, // 049
+ MUS_ROMERO, // 050
+ MUS_SHAWN2, // 051
+ MUS_MESSAG, // 052
+ MUS_COUNT2, // 053
+ MUS_DDTBL3, // 054
+ MUS_AMPIE, // 055
+ MUS_THEDA3, // 056
+ MUS_ADRIAN, // 057
+ MUS_MESSG2, // 058
+ MUS_ROMER2, // 059
+ MUS_TENSE, // 060
+ MUS_SHAWN3, // 061
+ MUS_OPENIN, // 062
+ MUS_EVIL, // 063
+ MUS_ULTIMA, // 064
+ MUS_READ_M, // 065
+ MUS_DM2TTL, // 066
+ MUS_DM2INT, // 067
NUMMUSIC // 068
} musicenum_t;
Modified: trunk/doomsday/plugins/jdoom/src/d_items.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/d_items.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/d_items.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -161,10 +161,10 @@
{0, 0, 0, 0}, // pershot: clip | shell | cell | misl
true, // autofire when raised if fire held
S_SAWUP,
- sfx_sawup, // raise sound id
+ SFX_SAWUP, // raise sound id
S_SAWDOWN,
S_SAW,
- sfx_sawidl, // ready sound
+ SFX_SAWIDL, // ready sound
S_SAW1,
S_NULL
}
Modified: trunk/doomsday/plugins/jdoom/src/m_cheat.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/m_cheat.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/m_cheat.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -411,7 +411,7 @@
if(gameMode == commercial)
{
off = (buf[0] - '0') * 10 + buf[1] - '0';
- musnum = mus_runnin + off - 1;
+ musnum = MUS_RUNNIN + off - 1;
if(off < 1 || off > 35)
P_SetMessage(plyr, STSTR_NOMUS, false);
else
@@ -420,7 +420,7 @@
else
{
off = (buf[0] - '1') * 9 + (buf[1] - '1');
- musnum = mus_e1m1 + off;
+ musnum = MUS_E1M1 + off;
if(off > 31)
P_SetMessage(plyr, STSTR_NOMUS, false);
else
@@ -582,7 +582,7 @@
{
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_oof, NULL);
+ S_LocalSound(SFX_OOF, NULL);
Con_Printf("Can only suicide when in a game!\n");
return true;
}
@@ -879,7 +879,7 @@
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_oof, NULL);
+ S_LocalSound(SFX_OOF, NULL);
Con_Printf("Can only exit a level when in a game!\n");
return true;
}
Modified: trunk/doomsday/plugins/jdoom/src/p_enemy.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_enemy.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_enemy.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -689,15 +689,15 @@
switch(actor->info->seeSound)
{
- case sfx_posit1:
- case sfx_posit2:
- case sfx_posit3:
- sound = sfx_posit1 + P_Random() % 3;
+ case SFX_POSIT1:
+ case SFX_POSIT2:
+ case SFX_POSIT3:
+ sound = SFX_POSIT1 + P_Random() % 3;
break;
- case sfx_bgsit1:
- case sfx_bgsit2:
- sound = sfx_bgsit1 + P_Random() % 2;
+ case SFX_BGSIT1:
+ case SFX_BGSIT2:
+ sound = SFX_BGSIT1 + P_Random() % 2;
break;
default:
@@ -848,7 +848,7 @@
angle = actor->angle;
slope = P_AimLineAttack(actor, angle, MISSILERANGE);
- S_StartSound(sfx_pistol, actor);
+ S_StartSound(SFX_PISTOL, actor);
angle += (P_Random() - P_Random()) << 20;
damage = ((P_Random() % 5) + 1) * 3;
P_LineAttack(actor, angle, MISSILERANGE, slope, damage);
@@ -863,7 +863,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_shotgn, actor);
+ S_StartSound(SFX_SHOTGN, actor);
A_FaceTarget(actor);
bangle = actor->angle;
slope = P_AimLineAttack(actor, bangle, MISSILERANGE);
@@ -885,7 +885,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_shotgn, actor);
+ S_StartSound(SFX_SHOTGN, actor);
A_FaceTarget(actor);
bangle = actor->angle;
slope = P_AimLineAttack(actor, bangle, MISSILERANGE);
@@ -946,7 +946,7 @@
A_FaceTarget(actor);
if(checkMeleeRange(actor))
{
- S_StartSound(sfx_claw, actor);
+ S_StartSound(SFX_CLAW, actor);
damage = (P_Random() % 8 + 1) * 3;
P_DamageMobj(actor->target, actor, actor, damage);
return;
@@ -1010,7 +1010,7 @@
if(checkMeleeRange(actor))
{
- S_StartSound(sfx_claw, actor);
+ S_StartSound(SFX_CLAW, actor);
damage = (P_Random() % 8 + 1) * 10;
P_DamageMobj(actor->target, actor, actor, damage);
return;
@@ -1116,7 +1116,7 @@
return;
A_FaceTarget(actor);
- S_StartSound(sfx_skeswg, actor);
+ S_StartSound(SFX_SKESWG, actor);
}
void C_DECL A_SkelFist(mobj_t *actor)
@@ -1130,7 +1130,7 @@
if(checkMeleeRange(actor))
{
damage = ((P_Random() % 10) + 1) * 6;
- S_StartSound(sfx_skepch, actor);
+ S_StartSound(SFX_SKEPCH, actor);
P_DamageMobj(actor->target, actor, actor, damage);
}
}
@@ -1227,7 +1227,7 @@
actor->target = temp;
P_MobjChangeState(actor, S_VILE_HEAL1);
- S_StartSound(sfx_slop, corpseHit);
+ S_StartSound(SFX_SLOP, corpseHit);
info = corpseHit->info;
P_MobjChangeState(corpseHit, info->raiseState);
@@ -1256,18 +1256,18 @@
void C_DECL A_VileStart(mobj_t *actor)
{
- S_StartSound(sfx_vilatk, actor);
+ S_StartSound(SFX_VILATK, actor);
}
void C_DECL A_StartFire(mobj_t *actor)
{
- S_StartSound(sfx_flamst, actor);
+ S_StartSound(SFX_FLAMST, actor);
A_Fire(actor);
}
void C_DECL A_FireCrackle(mobj_t *actor)
{
- S_StartSound(sfx_flame, actor);
+ S_StartSound(SFX_FLAME, actor);
A_Fire(actor);
}
@@ -1329,7 +1329,7 @@
if(!P_CheckSight(actor, actor->target))
return;
- S_StartSound(sfx_barexp, actor);
+ S_StartSound(SFX_BAREXP, actor);
P_DamageMobj(actor->target, actor, actor, 20);
actor->target->mom[MZ] = 1000 / actor->target->info->mass;
@@ -1348,7 +1348,7 @@
void C_DECL A_FatRaise(mobj_t *actor)
{
A_FaceTarget(actor);
- S_StartSound(sfx_manatk, actor);
+ S_StartSound(SFX_MANATK, actor);
}
/**
@@ -1558,15 +1558,15 @@
case 0:
return;
- case sfx_podth1:
- case sfx_podth2:
- case sfx_podth3:
- sound = sfx_podth1 + P_Random() % 3;
+ case SFX_PODTH1:
+ case SFX_PODTH2:
+ case SFX_PODTH3:
+ sound = SFX_PODTH1 + P_Random() % 3;
break;
- case sfx_bgdth1:
- case sfx_bgdth2:
- sound = sfx_bgdth1 + P_Random() % 2;
+ case SFX_BGDTH1:
+ case SFX_BGDTH2:
+ sound = SFX_BGDTH1 + P_Random() % 2;
break;
default:
@@ -1587,7 +1587,7 @@
void C_DECL A_XScream(mobj_t* actor)
{
- S_StartSound(sfx_slop, actor);
+ S_StartSound(SFX_SLOP, actor);
}
void C_DECL A_Pain(mobj_t* actor)
@@ -1787,7 +1787,7 @@
* \kludge Only play very loud sounds in map 8.
* \todo: Implement a MAPINFO option for this.
*/
- S_StartSound(sfx_hoof |
+ S_StartSound(SFX_HOOF |
(gameMode != commercial &&
gameMap == 8 ? DDSF_NO_ATTENUATION : 0), mo);
A_Chase(mo);
@@ -1799,7 +1799,7 @@
* \kludge Only play very loud sounds in map 8.
* \todo: Implement a MAPINFO option for this.
*/
- S_StartSound(sfx_metal |
+ S_StartSound(SFX_METAL |
(gameMode != commercial &&
gameMap == 8 ? DDSF_NO_ATTENUATION : 0), mo);
A_Chase(mo);
@@ -1807,18 +1807,18 @@
void C_DECL A_BabyMetal(mobj_t *mo)
{
- S_StartSound(sfx_bspwlk, mo);
+ S_StartSound(SFX_BSPWLK, mo);
A_Chase(mo);
}
void C_DECL A_BrainAwake(mobj_t *mo)
{
- S_StartSound(sfx_bossit, NULL);
+ S_StartSound(SFX_BOSSIT, NULL);
}
void C_DECL A_BrainPain(mobj_t *mo)
{
- S_StartSound(sfx_bospn, NULL);
+ S_StartSound(SFX_BOSPN, NULL);
}
void C_DECL A_BrainScream(mobj_t *mo)
@@ -1842,7 +1842,7 @@
th->tics = 1;
}
- S_StartSound(sfx_bosdth, NULL);
+ S_StartSound(SFX_BOSDTH, NULL);
}
void C_DECL A_BrainExplode(mobj_t *mo)
@@ -1894,7 +1894,7 @@
((targ->pos[VY] - mo->pos[VY]) / newmobj->mom[MY]) / newmobj->state->tics;
}
- S_StartSound(sfx_bospit, NULL);
+ S_StartSound(SFX_BOSPIT, NULL);
}
/**
@@ -1902,7 +1902,7 @@
*/
void C_DECL A_SpawnSound(mobj_t *mo)
{
- S_StartSound(sfx_boscub, mo);
+ S_StartSound(SFX_BOSCUB, mo);
A_SpawnFly(mo);
}
@@ -1921,7 +1921,7 @@
// First spawn teleport fog.
fog = P_SpawnMobj3fv(MT_SPAWNFIRE, targ->pos);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
// Randomly select monster to spawn.
r = P_Random();
@@ -1964,12 +1964,12 @@
void C_DECL A_PlayerScream(mobj_t *mo)
{
- int sound = sfx_pldeth; // Default death sound.
+ int sound = SFX_PLDETH; // Default death sound.
if((gameMode == commercial) && (mo->health < -50))
{
// If the player dies less with less than -50% without gibbing.
- sound = sfx_pdiehi;
+ sound = SFX_PDIEHI;
}
S_StartSound(sound, mo);
Modified: trunk/doomsday/plugins/jdoom/src/p_inter.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_inter.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_inter.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -149,7 +149,7 @@
if(player == &players[CONSOLEPLAYER])
ST_HUDUnHide(HUE_ON_PICKUP_WEAPON);
- S_ConsoleSound(sfx_wpnup, NULL, player - players);
+ S_ConsoleSound(SFX_WPNUP, NULL, player - players);
return false;
}
else
@@ -372,7 +372,7 @@
return;
}
- sound = sfx_itemup;
+ sound = SFX_ITEMUP;
player = toucher->player;
// Dead thing touching (an happen with a sliding player corpse).
@@ -430,7 +430,7 @@
player->plr->mo->health = player->health;
player->update |= PSF_HEALTH;
P_SetMessage(player, GOTSUPER, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
// Maybe unhide the HUD?
if(player == &players[CONSOLEPLAYER])
@@ -445,7 +445,7 @@
player->update |= PSF_HEALTH;
P_GiveArmor(player, armorClass[1]);
P_SetMessage(player, GOTMSPHERE, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
// Maybe unhide the HUD?
if(player == &players[CONSOLEPLAYER])
@@ -536,7 +536,7 @@
return;
P_SetMessage(player, GOTINVUL, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PSTR:
@@ -549,7 +549,7 @@
player->pendingWeapon = WT_FIRST;
player->update |= PSF_PENDING_WEAPON | PSF_READY_WEAPON;
}
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PINS:
@@ -557,7 +557,7 @@
return;
P_SetMessage(player, GOTINVIS, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_SUIT:
@@ -565,7 +565,7 @@
return;
P_SetMessage(player, GOTSUIT, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PMAP:
@@ -573,7 +573,7 @@
return;
P_SetMessage(player, GOTMAP, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PVIS:
@@ -581,7 +581,7 @@
return;
P_SetMessage(player, GOTVISOR, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
// Ammo.
@@ -658,7 +658,7 @@
return;
P_SetMessage(player, GOTBFG9000, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_MGUN:
@@ -666,7 +666,7 @@
return;
P_SetMessage(player, GOTCHAINGUN, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_CSAW:
@@ -674,7 +674,7 @@
return;
P_SetMessage(player, GOTCHAINSAW, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_LAUN:
@@ -682,7 +682,7 @@
return;
P_SetMessage(player, GOTLAUNCHER, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_PLAS:
@@ -690,7 +690,7 @@
return;
P_SetMessage(player, GOTPLASMA, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_SHOT:
@@ -698,7 +698,7 @@
return;
P_SetMessage(player, GOTSHOTGUN, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_SGN2:
@@ -706,7 +706,7 @@
return;
P_SetMessage(player, GOTSHOTGUN2, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
default:
Modified: trunk/doomsday/plugins/jdoom/src/p_mobj.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_mobj.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_mobj.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -462,7 +462,7 @@
mo->dPlayer->viewHeightDelta = mo->mom[MZ] / 8;
if(mo->player->health > 0)
- S_StartSound(sfx_oof, mo);
+ S_StartSound(SFX_OOF, mo);
}
mo->mom[MZ] = 0;
@@ -529,7 +529,7 @@
* after an archvile attack).
*/
if(mo->player->health > 0)
- S_StartSound(sfx_oof, mo);
+ S_StartSound(SFX_OOF, mo);
}
P_HitFloor(mo);
@@ -621,13 +621,13 @@
// Spawn a teleport fog at old spot.
mo = P_SpawnMobj3f(MT_TFOG, mobj->pos[VX], mobj->pos[VY],
P_GetFloatp(mobj->subsector, DMU_FLOOR_HEIGHT));
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
// Spawn a teleport fog at the new spot.
ss = R_PointInSubsector(pos[VX], pos[VY]);
mo = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY],
P_GetFloatp(ss, DMU_FLOOR_HEIGHT));
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
if(mobj->info->flags & MF_SPAWNCEILING)
pos[VZ] = ONCEILINGZ;
@@ -937,7 +937,7 @@
// Spawn a teleport fog at the new spot.
mo = P_SpawnMobj3fv(MT_IFOG, pos);
- S_StartSound(sfx_itmbk, mo);
+ S_StartSound(SFX_ITMBK, mo);
// Find which type to spawn.
for(i = 0; i < Get(DD_NUMMOBJTYPES); ++i)
Modified: trunk/doomsday/plugins/jdoom/src/p_pspr.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_pspr.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_pspr.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -418,7 +418,7 @@
// Turn to face target.
if(lineTarget)
{
- S_StartSoundEx(sfx_punch, player->plr->mo);
+ S_StartSoundEx(SFX_PUNCH, player->plr->mo);
player->plr->mo->angle =
R_PointToAngle2(player->plr->mo->pos[VX],
@@ -448,11 +448,11 @@
if(!lineTarget)
{
- S_StartSoundEx(sfx_sawful, player->plr->mo);
+ S_StartSoundEx(SFX_SAWFUL, player->plr->mo);
return;
}
- S_StartSoundEx(sfx_sawhit, player->plr->mo);
+ S_StartSoundEx(SFX_SAWHIT, player->plr->mo);
// Turn to face target.
angle =
@@ -560,7 +560,7 @@
void C_DECL A_FirePistol(player_t *player, pspdef_t *psp)
{
- S_StartSoundEx(sfx_pistol, player->plr->mo);
+ S_StartSoundEx(SFX_PISTOL, player->plr->mo);
P_MobjChangeState(player->plr->mo,
PCLASS_INFO(player->class)->attackEndState);
@@ -582,7 +582,7 @@
{
int i;
- S_StartSoundEx(sfx_shotgn, player->plr->mo);
+ S_StartSoundEx(SFX_SHOTGN, player->plr->mo);
P_MobjChangeState(player->plr->mo,
PCLASS_INFO(player->class)->attackEndState);
@@ -607,7 +607,7 @@
angle_t angle;
int damage;
- S_StartSoundEx(sfx_dshtgn, player->plr->mo);
+ S_StartSoundEx(SFX_DSHTGN, player->plr->mo);
P_MobjChangeState(player->plr->mo,
PCLASS_INFO(player->class)->attackEndState);
@@ -635,23 +635,23 @@
void C_DECL A_OpenShotgun2(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_dbopn, player->plr->mo);
+ S_StartSound(SFX_DBOPN, player->plr->mo);
}
void C_DECL A_LoadShotgun2(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_dbload, player->plr->mo);
+ S_StartSound(SFX_DBLOAD, player->plr->mo);
}
void C_DECL A_CloseShotgun2(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_dbcls, player->plr->mo);
+ S_StartSound(SFX_DBCLS, player->plr->mo);
A_ReFire(player, psp);
}
void C_DECL A_FireCGun(player_t *player, pspdef_t *psp)
{
- S_StartSoundEx(sfx_pistol, player->plr->mo);
+ S_StartSoundEx(SFX_PISTOL, player->plr->mo);
P_MobjChangeState(player->plr->mo,
PCLASS_INFO(player->class)->attackEndState);
@@ -719,7 +719,7 @@
void C_DECL A_BFGsound(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_bfg, player->plr->mo);
+ S_StartSound(SFX_BFG, player->plr->mo);
}
/**
Modified: trunk/doomsday/plugins/jdoom/src/p_sound.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_sound.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_sound.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -57,25 +57,25 @@
if(gameMode == commercial)
{
- mnum = mus_runnin + map - 1;
+ mnum = MUS_RUNNIN + map - 1;
}
else
{
int spmus[] = {
// Song - Who? - Where?
- mus_e3m4, // American e4m1
- mus_e3m2, // Romero e4m2
- mus_e3m3, // Shawn e4m3
- mus_e1m5, // American e4m4
- mus_e2m7, // Tim e4m5
- mus_e2m4, // Romero e4m6
- mus_e2m6, // J.Anderson e4m7 CHIRON.WAD
- mus_e2m5, // Shawn e4m8
- mus_e1m9 // Tim e4m9
+ MUS_E3M4, // American e4m1
+ MUS_E3M2, // Romero e4m2
+ MUS_E3M3, // Shawn e4m3
+ MUS_E1M5, // American e4m4
+ MUS_E2M7, // Tim e4m5
+ MUS_E2M4, // Romero e4m6
+ MUS_E2M6, // J.Anderson e4m7 CHIRON.WAD
+ MUS_E2M5, // Shawn e4m8
+ MUS_E1M9 // Tim e4m9
};
if(episode < 4)
- mnum = mus_e1m1 + (episode - 1) * 9 + map - 1;
+ mnum = MUS_E1M1 + (episode - 1) * 9 + map - 1;
else
mnum = spmus[map - 1];
}
Modified: trunk/doomsday/plugins/jdoom/src/p_spec.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_spec.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_spec.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -851,7 +851,7 @@
if(cfg.secretMsg)
{
P_SetMessage(player, "You've found a secret area!", false);
- S_ConsoleSound(sfx_getpow, 0, player - players);
+ S_ConsoleSound(SFX_GETPOW, 0, player - players);
}
break;
@@ -948,7 +948,7 @@
(int) button->section);
}
- S_StartSound(sfx_swtchn,
+ S_StartSound(SFX_SWTCHN,
P_GetPtrp(frontsector, DMU_SOUND_ORIGIN));
button->line = NULL;
@@ -1196,7 +1196,7 @@
// Prevent 'zombie players' from exiting levels.
if(mo->player && mo->player->health <= 0 && !cfg.zombiesCanExit)
{
- S_StartSound(sfx_noway, mo);
+ S_StartSound(SFX_NOWAY, mo);
return false;
}
@@ -1278,7 +1278,7 @@
// Prevent 'zombie players' from exiting levels.
if(mo->player && mo->player->health <= 0 && !cfg.zombiesCanExit)
{
- S_StartSound(sfx_noway, mo);
+ S_StartSound(SFX_NOWAY, mo);
return false;
}
Modified: trunk/doomsday/plugins/jdoom/src/p_telept.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/p_telept.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/p_telept.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -148,7 +148,7 @@
{
// Spawn teleport fog at source and destination.
fog = P_SpawnMobj3fv(MT_TFOG, oldPos);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
an = dest->angle >> ANGLETOFINESHIFT;
fog = P_SpawnMobj3f(MT_TFOG,
@@ -157,7 +157,7 @@
mo->pos[VZ]);
// Emit sound, where?
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
}
mo->angle = dest->angle;
Modified: trunk/doomsday/plugins/jdoom/src/wi_stuff.c
===================================================================
--- trunk/doomsday/plugins/jdoom/src/wi_stuff.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom/src/wi_stuff.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -757,14 +757,14 @@
dmTotals[i] = WI_fragSum(i);
}
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
dmState = 4;
}
if(dmState == 2)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -799,7 +799,7 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
dmState++;
}
}
@@ -807,7 +807,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_slop, 0);
+ S_LocalSound(SFX_SLOP, 0);
if(gameMode == commercial)
WI_initNoState();
else
@@ -965,14 +965,14 @@
cntFrags[i] = teamInfo[i].totalFrags;
}
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState = 10;
}
if(ngState == 2)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -987,14 +987,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState++;
}
}
else if(ngState == 4)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -1008,14 +1008,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState++;
}
}
else if(ngState == 6)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
@@ -1031,14 +1031,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState += 1 + 2 * !doFrags;
}
}
else if(ngState == 8)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
@@ -1054,7 +1054,7 @@
if(!stillTicking)
{
- S_LocalSound(sfx_pldeth, 0);
+ S_LocalSound(SFX_PLDETH, 0);
ngState++;
}
}
@@ -1062,7 +1062,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_sgcock, 0);
+ S_LocalSound(SFX_SGCOCK, 0);
if(gameMode == commercial)
WI_initNoState();
else
@@ -1172,7 +1172,7 @@
if(wbs->parTime != -1)
cntPar = wbs->parTime / TICRATE;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState = 10;
}
@@ -1181,12 +1181,12 @@
cntKills[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntKills[0] >= (plrs[me].kills * 100) / wbs->maxKills)
{
cntKills[0] = (plrs[me].kills * 100) / wbs->maxKills;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -1195,12 +1195,12 @@
cntItems[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntItems[0] >= (plrs[me].items * 100) / wbs->maxItems)
{
cntItems[0] = (plrs[me].items * 100) / wbs->maxItems;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -1209,19 +1209,19 @@
cntSecret[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntSecret[0] >= (plrs[me].secret * 100) / wbs->maxSecret)
{
cntSecret[0] = (plrs[me].secret * 100) / wbs->maxSecret;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
else if(spState == 8)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
cntTime += 3;
@@ -1238,7 +1238,7 @@
if(cntTime >= plrs[me].time / TICRATE)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -1250,7 +1250,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_sgcock, 0);
+ S_LocalSound(SFX_SGCOCK, 0);
if(gameMode == commercial)
WI_initNoState();
@@ -1352,9 +1352,9 @@
{
// Intermission music.
if(gameMode == commercial)
- S_StartMusicNum(mus_dm2int, true);
+ S_StartMusicNum(MUS_DM2INT, true);
else
- S_StartMusicNum(mus_inter, true);
+ S_StartMusicNum(MUS_INTER, true);
}
WI_checkForAccelerate();
Modified: trunk/doomsday/plugins/jdoom64/include/sndidx.h
===================================================================
--- trunk/doomsday/plugins/jdoom64/include/sndidx.h 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/include/sndidx.h 2008-05-31 09:41:58 UTC (rev 5686)
@@ -4,7 +4,7 @@
* Online License Link: http://www.gnu.org/licenses/gpl.html
*
*\author Copyright © 2003-2007 Jaakko Keränen <jaakko.keranen@...>
- *\author Copyright © 2006 Daniel Swanson <danij@...>
+ *\author Copyright © 2006-2008 Daniel Swanson <danij@...>
*\author Copyright © 2003-2005 Samuel Villarreal <svkaiser@...>
*
* This program is free software; you can redistribute it and/or modify
@@ -32,159 +32,159 @@
// Sounds.
typedef enum {
- sfx_None, // 000
- sfx_pistol, // 001
- sfx_shotgn, // 002
- sfx_sgcock, // 003
- sfx_dshtgn, // 004
- sfx_dbopn, // 005
- sfx_dbcls, // 006
- sfx_dbload, // 007
- sfx_plasma, // 008
- sfx_bfg, // 009
- sfx_sawup, // 010
- sfx_sawidl, // 011
- sfx_sawful, // 012
- sfx_sawhit, // 013
- sfx_rlaunc, // 014
- sfx_rxplod, // 015
- sfx_firsht, // 016
- sfx_firxpl, // 017
- sfx_pstart, // 018
- sfx_pstop, // 019
- sfx_doropn, // 020
- sfx_dorcls, // 021
- sfx_stnmov, // 022
- sfx_swtchn, // 023
- sfx_swtchx, // 024
- sfx_plpain, // 025
- sfx_dmpain, // 026
- sfx_popain, // 027
- sfx_vipain, // 028
- sfx_mnpain, // 029
- sfx_pepain, // 030
- sfx_slop, // 031
- sfx_itemup, // 032
- sfx_wpnup, // 033
- sfx_oof, // 034
- sfx_telept, // 035
- sfx_posit1, // 036
- sfx_posit2, // 037
- sfx_posit3, // 038
- sfx_bgsit1, // 039
- sfx_bgsit2, // 040
- sfx_sgtsit, // 041
- sfx_cacsit, // 042
- sfx_brssit, // 043
- sfx_cybsit, // 044
- sfx_spisit, // 045
- sfx_bspsit, // 046
- sfx_kntsit, // 047
- sfx_vilsit, // 048
- sfx_mansit, // 049
- sfx_pesit, // 050
- sfx_sklatk, // 051
- sfx_sgtatk, // 052
- sfx_skepch, // 053
- sfx_vilatk, // 054
- sfx_claw, // 055
- sfx_skeswg, // 056
- sfx_pldeth, // 057
- sfx_pdiehi, // 058
- sfx_podth1, // 059
- sfx_podth2, // 060
- sfx_podth3, // 061
- sfx_bgdth1, // 062
- sfx_bgdth2, // 063
- sfx_sgtdth, // 064
- sfx_cacdth, // 065
- sfx_skldth, // 066
- sfx_brsdth, // 067
- sfx_cybdth, // 068
- sfx_spidth, // 069
- sfx_bspdth, // 070
- sfx_vildth, // 071
- sfx_kntdth, // 072
- sfx_pedth, // 073
- sfx_skedth, // 074
- sfx_posact, // 075
- sfx_bgact, // 076
- sfx_dmact, // 077
- sfx_bspact, // 078
- sfx_bspwlk, // 079
- sfx_vilact, // 080
- sfx_noway, // 081
- sfx_barexp, // 082
- sfx_punch, // 083
- sfx_hoof, // 084
- sfx_metal, // 085
- sfx_chgun, // 086
- sfx_tink, // 087
- sfx_bdopn, // 088
- sfx_bdcls, // 089
- sfx_itmbk, // 090
- sfx_flame, // 091
- sfx_flamst, // 092
- sfx_getpow, // 093
- sfx_bospit, // 094
- sfx_boscub, // 095
- sfx_bossit, // 096
- sfx_bospn, // 097
- sfx_bosdth, // 098
- sfx_manatk, // 099
- sfx_mandth, // 100
- sfx_sssit, // 101
- sfx_ssdth, // 102
- sfx_keenpn, // 103
- sfx_keendt, // 104
- sfx_skeact, // 105
- sfx_skesit, // 106
- sfx_skeatk, // 107
- sfx_radio, // 108
- //sfx_wsplash, // jd64
- //sfx_nsplash, // jd64
- //sfx_blurb, // jd64
+ SFX_NONE, // 000
+ SFX_PISTOL, // 001
+ SFX_SHOTGN, // 002
+ SFX_SGCOCK, // 003
+ SFX_DSHTGN, // 004
+ SFX_DBOPN, // 005
+ SFX_DBCLS, // 006
+ SFX_DBLOAD, // 007
+ SFX_PLASMA, // 008
+ SFX_BFG, // 009
+ SFX_SAWUP, // 010
+ SFX_SAWIDL, // 011
+ SFX_SAWFUL, // 012
+ SFX_SAWHIT, // 013
+ SFX_RLAUNC, // 014
+ SFX_RXPLOD, // 015
+ SFX_FIRSHT, // 016
+ SFX_FIRXPL, // 017
+ SFX_PSTART, // 018
+ SFX_PSTOP, // 019
+ SFX_DOROPN, // 020
+ SFX_DORCLS, // 021
+ SFX_STNMOV, // 022
+ SFX_SWTCHN, // 023
+ SFX_SWTCHX, // 024
+ SFX_PLPAIN, // 025
+ SFX_DMPAIN, // 026
+ SFX_POPAIN, // 027
+ SFX_VIPAIN, // 028
+ SFX_MNPAIN, // 029
+ SFX_PEPAIN, // 030
+ SFX_SLOP, // 031
+ SFX_ITEMUP, // 032
+ SFX_WPNUP, // 033
+ SFX_OOF, // 034
+ SFX_TELEPT, // 035
+ SFX_POSIT1, // 036
+ SFX_POSIT2, // 037
+ SFX_POSIT3, // 038
+ SFX_BGSIT1, // 039
+ SFX_BGSIT2, // 040
+ SFX_SGTSIT, // 041
+ SFX_CACSIT, // 042
+ SFX_BRSSIT, // 043
+ SFX_CYBSIT, // 044
+ SFX_SPISIT, // 045
+ SFX_BSPSIT, // 046
+ SFX_KNTSIT, // 047
+ SFX_VILSIT, // 048
+ SFX_MANSIT, // 049
+ SFX_PESIT, // 050
+ SFX_SKLATK, // 051
+ SFX_SGTATK, // 052
+ SFX_SKEPCH, // 053
+ SFX_VILATK, // 054
+ SFX_CLAW, // 055
+ SFX_SKESWG, // 056
+ SFX_PLDETH, // 057
+ SFX_PDIEHI, // 058
+ SFX_PODTH1, // 059
+ SFX_PODTH2, // 060
+ SFX_PODTH3, // 061
+ SFX_BGDTH1, // 062
+ SFX_BGDTH2, // 063
+ SFX_SGTDTH, // 064
+ SFX_CACDTH, // 065
+ SFX_SKLDTH, // 066
+ SFX_BRSDTH, // 067
+ SFX_CYBDTH, // 068
+ SFX_SPIDTH, // 069
+ SFX_BSPDTH, // 070
+ SFX_VILDTH, // 071
+ SFX_KNTDTH, // 072
+ SFX_PEDTH, // 073
+ SFX_SKEDTH, // 074
+ SFX_POSACT, // 075
+ SFX_BGACT, // 076
+ SFX_DMACT, // 077
+ SFX_BSPACT, // 078
+ SFX_BSPWLK, // 079
+ SFX_VILACT, // 080
+ SFX_NOWAY, // 081
+ SFX_BAREXP, // 082
+ SFX_PUNCH, // 083
+ SFX_HOOF, // 084
+ SFX_MEAL, // 085
+ SFX_CHGUN, // 086
+ SFX_TINK, // 087
+ SFX_BDOPN, // 088
+ SFX_BDCLS, // 089
+ SFX_ITMBK, // 090
+ SFX_FLAME, // 091
+ SFX_FLAMST, // 092
+ SFX_GETPOW, // 093
+ SFX_BOSPIT, // 094
+ SFX_BOSCUB, // 095
+ SFX_BOSSIT, // 096
+ SFX_BOSPN, // 097
+ SFX_BOSDTH, // 098
+ SFX_MANATK, // 099
+ SFX_MANDTH, // 100
+ SFX_SSSIT, // 101
+ SFX_SSDTH, // 102
+ SFX_KEENPN, // 103
+ SFX_KEENDT, // 104
+ SFX_SKEACT, // 105
+ SFX_SKESIT, // 106
+ SFX_SKEATK, // 107
+ SFX_RADIO, // 108
+ //SFX_WSPLASH, // jd64
+ //SFX_NSPLASH, // jd64
+ //SFX_BLURB, // jd64
// jd64 >
- sfx_psidl,
- sfx_laser,
- sfx_mthatk,
- sfx_mthsit,
- sfx_mthpai,
- sfx_mthact,
- sfx_mthdth,
- sfx_stlkst,
- sfx_stlkpn,
- sfx_stlktp,
- sfx_htime,
- // < d64tc
+ SFX_PSIDL,
+ SFX_LASER,
+ SFX_MTHATK,
+ SFX_MTHSIT,
+ SFX_MTHPAI,
+ SFX_MTHACT,
+ SFX_MTHDTH,
+ SFX_STLKST,
+ SFX_STLKPN,
+ SFX_STLKTP,
+ SFX_HTIME,
+ // < D64TC
NUMSFX
} sfxenum_t;
// Music.
typedef enum {
- mus_None, // 000
- mus_runnin, // 033
- mus_stalks, // 034
- mus_countd, // 035
- mus_betwee, // 036
- mus_doom, // 037
- mus_the_da, // 038
- mus_ddtblu, // 040
- mus_dead, // 042
- mus_stlks2, // 043
- mus_theda2, // 044
- mus_doom2, // 045
- mus_ddtbl2, // 046
- mus_runni2, // 047
- mus_stlks3, // 049
- mus_shawn2, // 051
- mus_count2, // 053
- mus_ddtbl3, // 054
- mus_ampie, // 055
- mus_evil, // 063
- mus_read_m, // 065
- mus_dm2ttl, // 066
- mus_dm2int, // 067
+ MUS_NONE, // 000
+ MUS_RUNNIN, // 033
+ MUS_STALKS, // 034
+ MUS_COUNTD, // 035
+ MUS_BETWEE, // 036
+ MUS_DOOM, // 037
+ MUS_THE_DA, // 038
+ MUS_DDTBLU, // 040
+ MUS_DEAD, // 042
+ MUS_STLKS2, // 043
+ MUS_THEDA2, // 044
+ MUS_DOOM2, // 045
+ MUS_DDTBL2, // 046
+ MUS_RUNNI2, // 047
+ MUS_STLKS3, // 049
+ MUS_SHAWN2, // 051
+ MUS_COUNT2, // 053
+ MUS_DDTBL3, // 054
+ MUS_AMPIE, // 055
+ MUS_EVIL, // 063
+ MUS_READ_M, // 065
+ MUS_DM2TTL, // 066
+ MUS_DM2INT, // 067
NUMMUSIC // 068
} musicenum_t;
Modified: trunk/doomsday/plugins/jdoom64/src/d_items.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/d_items.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/d_items.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -164,10 +164,10 @@
{0, 0, 0, 0}, // pershot: clip | shell | cell | misl
true, // autofire when raised if fire held
S_SAWUP,
- sfx_sawup, // raise sound id
+ SFX_SAWUP, // raise sound id
S_SAWDOWN,
S_SAW,
- sfx_sawidl, // ready sound
+ SFX_SAWIDL, // ready sound
S_SAW1,
S_NULL
}
Modified: trunk/doomsday/plugins/jdoom64/src/m_cheat.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/m_cheat.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/m_cheat.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -435,7 +435,7 @@
int off, musnum;
off = (buf[0] - '0') * 10 + buf[1] - '0';
- musnum = mus_runnin + off - 1;
+ musnum = MUS_RUNNIN + off - 1;
if(off < 1 || off > 35)
P_SetMessage(plyr, STSTR_NOMUS, false);
else
@@ -618,7 +618,7 @@
{
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_oof, NULL);
+ S_LocalSound(SFX_OOF, NULL);
Con_Printf("Can only suicide when in a game!\n");
return true;
}
@@ -896,7 +896,7 @@
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_oof, NULL);
+ S_LocalSound(SFX_OOF, NULL);
Con_Printf("Can only exit a level when in a game!\n");
return true;
}
Modified: trunk/doomsday/plugins/jdoom64/src/p_enemy.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_enemy.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_enemy.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -998,15 +998,15 @@
switch(actor->info->seeSound)
{
- case sfx_posit1:
- case sfx_posit2:
- case sfx_posit3:
- sound = sfx_posit1 + P_Random() % 3;
+ case SFX_POSIT1:
+ case SFX_POSIT2:
+ case SFX_POSIT3:
+ sound = SFX_POSIT1 + P_Random() % 3;
break;
- case sfx_bgsit1:
- case sfx_bgsit2:
- sound = sfx_bgsit1 + P_Random() % 2;
+ case SFX_BGSIT1:
+ case SFX_BGSIT2:
+ sound = SFX_BGSIT1 + P_Random() % 2;
break;
default:
@@ -1169,7 +1169,7 @@
angle = actor->angle;
slope = P_AimLineAttack(actor, angle, MISSILERANGE);
- S_StartSound(sfx_pistol, actor);
+ S_StartSound(SFX_PISTOL, actor);
angle += (P_Random() - P_Random()) << 20;
damage = ((P_Random() % 5) + 1) * 3;
P_LineAttack(actor, angle, MISSILERANGE, slope, damage);
@@ -1184,7 +1184,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_shotgn, actor);
+ S_StartSound(SFX_SHOTGN, actor);
A_FaceTarget(actor);
bangle = actor->angle;
slope = P_AimLineAttack(actor, bangle, MISSILERANGE);
@@ -1222,7 +1222,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_pistol, actor);
+ S_StartSound(SFX_PISTOL, actor);
A_FaceTarget(actor);
bangle = actor->angle;
slope = P_AimLineAttack(actor, bangle, MISSILERANGE);
@@ -1373,7 +1373,7 @@
A_FaceTarget(actor);
if(checkMeleeRange(actor))
{
- S_StartSound(sfx_claw, actor);
+ S_StartSound(SFX_CLAW, actor);
damage = (P_Random() % 8 + 1) * 3;
P_DamageMobj(actor->target, actor, actor, damage);
return;
@@ -1406,7 +1406,7 @@
return;
A_FaceTarget(actor);
- S_StartSound(sfx_mthatk, actor);
+ S_StartSound(SFX_MTHATK, actor);
/*
mo = P_SpawnMissile(MT_FIREEND, actor, actor->target);
@@ -1604,7 +1604,7 @@
if(checkMeleeRange(actor))
{
- S_StartSound(sfx_claw, actor);
+ S_StartSound(SFX_CLAW, actor);
damage = (P_Random() % 8 + 1) * 10;
P_DamageMobj(actor->target, actor, actor, damage);
return;
@@ -1626,7 +1626,7 @@
if(checkMeleeRange(actor))
{
- S_StartSound(sfx_claw, actor);
+ S_StartSound(SFX_CLAW, actor);
damage = (P_Random() % 8 + 1) * 10;
P_DamageMobj(actor->target, actor, actor, damage);
return;
@@ -1654,7 +1654,7 @@
actor->flags |= MF_SHOOTABLE;
P_SpawnMobj3fv(MT_HFOG, actor->pos);
- S_StartSound(sfx_stlktp, actor);
+ S_StartSound(SFX_STLKTP, actor);
return;
}
@@ -1665,7 +1665,7 @@
{
P_SpawnMobj3fv(MT_HFOG, actor->pos);
- S_StartSound(sfx_stlktp, actor);
+ S_StartSound(SFX_STLKTP, actor);
P_MobjChangeState(actor, S_STALK_HIDE);
actor->flags &= ~MF_SOLID;
actor->flags &= ~MF_SHOOTABLE;
@@ -1775,7 +1775,7 @@
return;
A_FaceTarget(actor);
- S_StartSound(sfx_skeswg, actor);
+ S_StartSound(SFX_SKESWG, actor);
}
void C_DECL A_SkelFist(mobj_t *actor)
@@ -1789,7 +1789,7 @@
if(checkMeleeRange(actor))
{
damage = ((P_Random() % 10) + 1) * 6;
- S_StartSound(sfx_skepch, actor);
+ S_StartSound(SFX_SKEPCH, actor);
P_DamageMobj(actor->target, actor, actor, damage);
}
}
@@ -1797,7 +1797,7 @@
void C_DECL A_FatRaise(mobj_t *actor)
{
A_FaceTarget(actor);
- S_StartSound(sfx_manatk, actor);
+ S_StartSound(SFX_MANATK, actor);
}
/**
@@ -2036,15 +2036,15 @@
case 0:
return;
- case sfx_podth1:
- case sfx_podth2:
- case sfx_podth3:
- sound = sfx_podth1 + P_Random() % 3;
+ case SFX_PODTH1:
+ case SFX_PODTH2:
+ case SFX_PODTH3:
+ sound = SFX_PODTH1 + P_Random() % 3;
break;
- case sfx_bgdth1:
- case sfx_bgdth2:
- sound = sfx_bgdth1 + P_Random() % 2;
+ case SFX_BGDTH1:
+ case SFX_BGDTH2:
+ sound = SFX_BGDTH1 + P_Random() % 2;
break;
default:
@@ -2080,7 +2080,7 @@
mo = P_SpawnMobj3fv(MT_KABOOM, pos);
if(mo)
{
- S_StartSound(sfx_barexp, mo);
+ S_StartSound(SFX_BAREXP, mo);
mo->mom[MX] = FIX2FLT((P_Random() - 128) << 11);
mo->mom[MY] = FIX2FLT((P_Random() - 128) << 11);
mo->target = actor;
@@ -2129,7 +2129,7 @@
void C_DECL A_XScream(mobj_t *actor)
{
- S_StartSound(sfx_slop, actor);
+ S_StartSound(SFX_SLOP, actor);
}
void C_DECL A_Pain(mobj_t *actor)
@@ -2400,7 +2400,7 @@
* \kludge Only play very loud sounds in map 8.
* \todo: Implement a MAPINFO option for this.
*/
- S_StartSound(sfx_hoof |
+ S_StartSound(SFX_HOOF |
(gameMode != commercial &&
gameMap == 8 ? DDSF_NO_ATTENUATION : 0), mo);
A_Chase(mo);
@@ -2412,7 +2412,7 @@
* \kludge Only play very loud sounds in map 8.
* \todo: Implement a MAPINFO option for this.
*/
- S_StartSound(sfx_metal |
+ S_StartSound(SFX_MEAL |
(gameMode != commercial &&
gameMap == 8 ? DDSF_NO_ATTENUATION : 0), mo);
A_Chase(mo);
@@ -2420,18 +2420,18 @@
void C_DECL A_BabyMetal(mobj_t *mo)
{
- S_StartSound(sfx_bspwlk, mo);
+ S_StartSound(SFX_BSPWLK, mo);
A_Chase(mo);
}
void C_DECL A_BrainAwake(mobj_t *mo)
{
- S_StartSound(sfx_bossit, NULL);
+ S_StartSound(SFX_BOSSIT, NULL);
}
void C_DECL A_BrainPain(mobj_t *mo)
{
- S_StartSound(sfx_bospn, NULL);
+ S_StartSound(SFX_BOSPN, NULL);
}
void C_DECL A_BrainScream(mobj_t *mo)
@@ -2455,7 +2455,7 @@
th->tics = 1;
}
- S_StartSound(sfx_bosdth, NULL);
+ S_StartSound(SFX_BOSDTH, NULL);
}
void C_DECL A_BrainExplode(mobj_t *mo)
@@ -2520,7 +2520,7 @@
*/
void C_DECL A_SpawnSound(mobj_t *mo)
{
- S_StartSound(sfx_boscub, mo);
+ S_StartSound(SFX_BOSCUB, mo);
A_SpawnFly(mo);
}
@@ -2573,12 +2573,12 @@
void C_DECL A_PlayerScream(mobj_t *mo)
{
- int sound = sfx_pldeth; // Default death sound.
+ int sound = SFX_PLDETH; // Default death sound.
if((gameMode == commercial) && (mo->health < -50))
{
// If the player dies less with less than -50% without gibbing.
- sound = sfx_pdiehi;
+ sound = SFX_PDIEHI;
}
S_StartSound(sound, mo);
Modified: trunk/doomsday/plugins/jdoom64/src/p_inter.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_inter.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_inter.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -158,7 +158,7 @@
if(player == &players[CONSOLEPLAYER])
ST_HUDUnHide(HUE_ON_PICKUP_WEAPON);
- S_ConsoleSound(sfx_wpnup, NULL, player - players);
+ S_ConsoleSound(SFX_WPNUP, NULL, player - players);
return false;
}
else
@@ -388,7 +388,7 @@
return;
}
- sound = sfx_itemup;
+ sound = SFX_ITEMUP;
player = toucher->player;
// Dead thing touching. Can happen with a sliding player corpse.
@@ -470,7 +470,7 @@
player->plr->mo->health = player->health;
player->update |= PSF_HEALTH;
P_SetMessage(player, GOTSUPER, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
// Maybe unhide the HUD?
if(player == &players[CONSOLEPLAYER])
@@ -485,7 +485,7 @@
player->update |= PSF_HEALTH;
P_GiveArmor(player, armorClass[1]);
P_SetMessage(player, GOTMSPHERE, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
// Maybe unhide the HUD?
if(player == &players[CONSOLEPLAYER])
@@ -573,7 +573,7 @@
if(!P_GivePower(player, PT_INVULNERABILITY))
return;
P_SetMessage(player, GOTINVUL, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PSTR:
@@ -585,35 +585,35 @@
player->pendingWeapon = WT_FIRST;
player->update |= PSF_PENDING_WEAPON | PSF_READY_WEAPON;
}
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PINS:
if(!P_GivePower(player, PT_INVISIBILITY))
return;
P_SetMessage(player, GOTINVIS, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_SUIT:
if(!P_GivePower(player, PT_IRONFEET))
return;
P_SetMessage(player, GOTSUIT, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PMAP:
if(!P_GivePower(player, PT_ALLMAP))
return;
P_SetMessage(player, GOTMAP, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
case SPR_PVIS:
if(!P_GivePower(player, PT_INFRARED))
return;
P_SetMessage(player, GOTVISOR, false);
- sound = sfx_getpow;
+ sound = SFX_GETPOW;
break;
// ammo
@@ -682,49 +682,49 @@
if(!P_GiveWeapon(player, WT_SEVENTH, false))
return;
P_SetMessage(player, GOTBFG9000, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_MGUN:
if(!P_GiveWeapon(player, WT_FOURTH, special->flags & MF_DROPPED))
return;
P_SetMessage(player, GOTCHAINGUN, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_CSAW:
if(!P_GiveWeapon(player, WT_EIGHTH, false))
return;
P_SetMessage(player, GOTCHAINSAW, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_LAUN:
if(!P_GiveWeapon(player, WT_FIFTH, false))
return;
P_SetMessage(player, GOTLAUNCHER, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_PLAS:
if(!P_GiveWeapon(player, WT_SIXTH, false))
return;
P_SetMessage(player, GOTPLASMA, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_SHOT:
if(!P_GiveWeapon(player, WT_THIRD, special->flags & MF_DROPPED))
return;
P_SetMessage(player, GOTSHOTGUN, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_SGN2:
if(!P_GiveWeapon(player, WT_NINETH, special->flags & MF_DROPPED))
return;
P_SetMessage(player, GOTSHOTGUN2, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_LGUN: // jd64
@@ -732,7 +732,7 @@
return;
P_SetMessage(player, GOTUNMAKER, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_POW1: // jd64
Modified: trunk/doomsday/plugins/jdoom64/src/p_mobj.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_mobj.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_mobj.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -162,7 +162,7 @@
void P_BounceMissile(mobj_t *mo) //kaiser
{
mo->mom[MZ] *= -(mo->reactionTime * (1.0f / 192));
- S_StartSound(sfx_ssdth, mo);
+ S_StartSound(SFX_SSDTH, mo);
}
void P_FloorBounceMissile(mobj_t *mo)
@@ -506,7 +506,7 @@
mo->dPlayer->viewHeightDelta = mo->mom[MZ] / 8;
if(mo->player->health > 0)
- S_StartSound(sfx_oof, mo);
+ S_StartSound(SFX_OOF, mo);
}
mo->mom[MZ] = 0;
@@ -601,7 +601,7 @@
// Fix DOOM bug - dead players grunting when hitting the ground
// (e.g., after an archvile attack)
if(mo->player->health > 0)
- S_StartSound(sfx_oof, mo);
+ S_StartSound(SFX_OOF, mo);
}
P_HitFloor(mo);
@@ -694,13 +694,13 @@
// Spawn a teleport fog at old spot.
mo = P_SpawnMobj3f(MT_TFOG, mobj->pos[VX], mobj->pos[VY],
P_GetFloatp(mobj->subsector, DMU_FLOOR_HEIGHT));
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
// Spawn a teleport fog at the new spot.
ss = R_PointInSubsector(pos[VX], pos[VY]);
mo = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY],
P_GetFloatp(ss, DMU_FLOOR_HEIGHT));
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
if(mobj->info->flags & MF_SPAWNCEILING)
pos[VZ] = ONCEILINGZ;
@@ -1059,7 +1059,7 @@
// jd64 >
// Spawn a teleport fog at the new spot
//mo = P_SpawnMobj3fv(MT_IFOG, pos);
- //S_StartSound(sfx_itmbk, mo);
+ //S_StartSound(SFX_ITMBK, mo);
// < d64tc
// Find which type to spawn.
@@ -1095,7 +1095,7 @@
// jd64 >
mo->intFlags |= MIF_FADE;
- S_StartSound(sfx_itmbk, mo);
+ S_StartSound(SFX_ITMBK, mo);
mo->translucency = 255;
// < d64tc
}
Modified: trunk/doomsday/plugins/jdoom64/src/p_pspr.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_pspr.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_pspr.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -443,7 +443,7 @@
// Turn to face target.
if(lineTarget)
{
- S_StartSound(sfx_punch, player->plr->mo);
+ S_StartSound(SFX_PUNCH, player->plr->mo);
player->plr->mo->angle =
R_PointToAngle2(player->plr->mo->pos[VX], player->plr->mo->pos[VY],
@@ -471,11 +471,11 @@
if(!lineTarget)
{
- S_StartSound(sfx_sawful, player->plr->mo);
+ S_StartSound(SFX_SAWFUL, player->plr->mo);
return;
}
- S_StartSound(sfx_sawhit, player->plr->mo);
+ S_StartSound(SFX_SAWHIT, player->plr->mo);
// Turn to face target.
angle =
@@ -561,7 +561,7 @@
*/
void C_DECL A_PlasmaBuzz(player_t *player)
{
- S_StartSound(sfx_psidl, player->plr->mo);
+ S_StartSound(SFX_PSIDL, player->plr->mo);
}
/**
@@ -709,7 +709,7 @@
void C_DECL A_FirePistol(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_pistol, player->plr->mo);
+ S_StartSound(SFX_PISTOL, player->plr->mo);
P_MobjChangeState(player->plr->mo, PCLASS_INFO(player->class)->attackEndState);
@@ -729,7 +729,7 @@
{
int i;
- S_StartSound(sfx_shotgn, player->plr->mo);
+ S_StartSound(SFX_SHOTGN, player->plr->mo);
P_MobjChangeState(player->plr->mo, PCLASS_INFO(player->class)->attackEndState);
P_ShotAmmo(player);
@@ -752,7 +752,7 @@
angle_t angle;
int damage;
- S_StartSound(sfx_dshtgn, player->plr->mo);
+ S_StartSound(SFX_DSHTGN, player->plr->mo);
P_MobjChangeState(player->plr->mo, PCLASS_INFO(player->class)->attackEndState);
P_ShotAmmo(player);
@@ -792,23 +792,23 @@
void C_DECL A_OpenShotgun2(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_dbopn, player->plr->mo);
+ S_StartSound(SFX_DBOPN, player->plr->mo);
}
void C_DECL A_LoadShotgun2(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_dbload, player->plr->mo);
+ S_StartSound(SFX_DBLOAD, player->plr->mo);
}
void C_DECL A_CloseShotgun2(player_t *player, pspdef_t * psp)
{
- S_StartSound(sfx_dbcls, player->plr->mo);
+ S_StartSound(SFX_DBCLS, player->plr->mo);
A_ReFire(player, psp);
}
void C_DECL A_FireCGun(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_pistol, player->plr->mo);
+ S_StartSound(SFX_PISTOL, player->plr->mo);
P_MobjChangeState(player->plr->mo, PCLASS_INFO(player->class)->attackEndState);
@@ -884,7 +884,7 @@
void C_DECL A_BFGsound(player_t *player, pspdef_t *psp)
{
- S_StartSound(sfx_bfg, player->plr->mo);
+ S_StartSound(SFX_BFG, player->plr->mo);
}
/**
Modified: trunk/doomsday/plugins/jdoom64/src/p_sound.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_sound.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_sound.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -51,7 +51,7 @@
{
int mnum;
- mnum = mus_runnin + map - 1;
+ mnum = MUS_RUNNIN + map - 1;
return mnum;
}
Modified: trunk/doomsday/plugins/jdoom64/src/p_spec.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_spec.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_spec.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -940,7 +940,7 @@
if(cfg.secretMsg)
{
P_SetMessage(player, "You've found a secret area!", false);
- // S_ConsoleSound(sfx_getpow, 0, player - players); // jd64
+ // S_ConsoleSound(SFX_GETPOW, 0, player - players); // jd64
}
break;
/*
@@ -1106,7 +1106,7 @@
(int) button->section);
}
- S_StartSound(sfx_swtchn,
+ S_StartSound(SFX_SWTCHN,
P_GetPtrp(frontsector, DMU_SOUND_ORIGIN));
button->line = NULL;
@@ -1153,7 +1153,7 @@
if(!(levelTime & 32))
{
P_SetFloatp(sec, DMU_LIGHT_LEVEL, 1);
- S_StartSound(sfx_sssit, P_GetPtrp(sec, DMU_SOUND_ORIGIN));
+ S_StartSound(SFX_SSSIT, P_GetPtrp(sec, DMU_SOUND_ORIGIN));
}
}
}
@@ -1416,7 +1416,7 @@
// Prevent zombies from exiting levels,
if(mo->player && mo->player->health <= 0 && !cfg.zombiesCanExit)
{
- S_StartSound(sfx_noway, mo);
+ S_StartSound(SFX_NOWAY, mo);
return false;
}
@@ -1498,7 +1498,7 @@
// Prevent zombies from exiting levels.
if(mo->player && mo->player->health <= 0 && !cfg.zombiesCanExit)
{
- S_StartSound(sfx_noway, mo);
+ S_StartSound(SFX_NOWAY, mo);
return false;
}
Modified: trunk/doomsday/plugins/jdoom64/src/p_telept.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/p_telept.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/p_telept.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -147,7 +147,7 @@
{
// Spawn teleport fog at source and destination.
fog = P_SpawnMobj3fv(MT_TFOG, oldPos);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
an = dest->angle >> ANGLETOFINESHIFT;
fog = P_SpawnMobj3f(MT_TFOG,
@@ -156,7 +156,7 @@
mo->pos[VZ]);
// Emit sound, where?
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
}
mo->angle = dest->angle;
@@ -329,7 +329,7 @@
mo->angle = origin->angle;
// Emit sound, where?
- S_StartSound(sfx_itmbk, mo);
+ S_StartSound(SFX_ITMBK, mo);
if(mobjInfo[spawntype].flags & MF_COUNTKILL)
totalKills++;
Modified: trunk/doomsday/plugins/jdoom64/src/wi_stuff.c
===================================================================
--- trunk/doomsday/plugins/jdoom64/src/wi_stuff.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jdoom64/src/wi_stuff.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -419,14 +419,14 @@
dmTotals[i] = WI_fragSum(i);
}
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
dmState = 4;
}
if(dmState == 2)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -461,7 +461,7 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
dmState++;
}
}
@@ -469,7 +469,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_slop, 0);
+ S_LocalSound(SFX_SLOP, 0);
WI_initNoState();
}
}
@@ -626,14 +626,14 @@
cntFrags[i] = teamInfo[i].totalFrags;
}
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState = 10;
}
if(ngState == 2)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -648,14 +648,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState++;
}
}
else if(ngState == 4)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
for(i = 0; i < NUM_TEAMS; ++i)
@@ -669,14 +669,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState++;
}
}
else if(ngState == 6)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
@@ -692,14 +692,14 @@
if(!stillTicking)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
ngState += 1 + 2 * !doFrags;
}
}
else if(ngState == 8)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
stillTicking = false;
@@ -715,7 +715,7 @@
if(!stillTicking)
{
- S_LocalSound(sfx_pldeth, 0);
+ S_LocalSound(SFX_PLDETH, 0);
ngState++;
}
}
@@ -723,7 +723,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_sgcock, 0);
+ S_LocalSound(SFX_SGCOCK, 0);
WI_initNoState();
}
}
@@ -828,7 +828,7 @@
cntTime = plrs[me].time / TICRATE;
if(wbs->parTime != -1)
cntPar = wbs->parTime / TICRATE;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState = 10;
}
@@ -837,12 +837,12 @@
cntKills[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntKills[0] >= (plrs[me].kills * 100) / wbs->maxKills)
{
cntKills[0] = (plrs[me].kills * 100) / wbs->maxKills;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -851,12 +851,12 @@
cntItems[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntItems[0] >= (plrs[me].items * 100) / wbs->maxItems)
{
cntItems[0] = (plrs[me].items * 100) / wbs->maxItems;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -865,19 +865,19 @@
cntSecret[0] += 2;
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
if(cntSecret[0] >= (plrs[me].secret * 100) / wbs->maxSecret)
{
cntSecret[0] = (plrs[me].secret * 100) / wbs->maxSecret;
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
else if(spState == 8)
{
if(!(bcnt & 3))
- S_LocalSound(sfx_pistol, 0);
+ S_LocalSound(SFX_PISTOL, 0);
cntTime += 3;
@@ -894,7 +894,7 @@
if(cntTime >= plrs[me].time / TICRATE)
{
- S_LocalSound(sfx_barexp, 0);
+ S_LocalSound(SFX_BAREXP, 0);
spState++;
}
}
@@ -906,7 +906,7 @@
{
if(accelerateStage)
{
- S_LocalSound(sfx_sgcock, 0);
+ S_LocalSound(SFX_SGCOCK, 0);
WI_initNoState();
}
}
@@ -999,7 +999,7 @@
if(bcnt == 1)
{
// Intermission music.
- S_StartMusicNum(mus_dm2int, true);
+ S_StartMusicNum(MUS_DM2INT, true);
}
WI_checkForAccelerate();
Modified: trunk/doomsday/plugins/jheretic/include/sounds.h
===================================================================
--- trunk/doomsday/plugins/jheretic/include/sounds.h 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/include/sounds.h 2008-05-31 09:41:58 UTC (rev 5686)
@@ -4,7 +4,7 @@
* Online License Link: http://www.gnu.org/licenses/gpl.html
*
*\author Copyright © 2003-2007 Jaakko Keränen <jaakko.keranen@...>
- *\author Copyright © 2006-2007 Daniel Swanson <danij@...>
+ *\author Copyright © 2006-2008 Daniel Swanson <danij@...>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -46,204 +46,204 @@
// Sounds.
typedef enum {
- sfx_None, // 000
- sfx_gldhit, // 001
- sfx_gntful, // 002
- sfx_gnthit, // 003
- sfx_gntpow, // 004
- sfx_gntact, // 005
- sfx_gntuse, // 006
- sfx_phosht, // 007
- sfx_phohit, // 008
- sfx_phopow, // 009
- sfx_lobsht, // 010
- sfx_lobhit, // 011
- sfx_lobpow, // 012
- sfx_hrnsht, // 013
- sfx_hrnhit, // 014
- sfx_hrnpow, // 015
- sfx_ramphit, // 016
- sfx_ramrain, // 017
- sfx_bowsht, // 018
- sfx_stfhit, // 019
- sfx_stfpow, // 020
- sfx_stfcrk, // 021
- sfx_impsit, // 022
- sfx_impat1, // 023
- sfx_impat2, // 024
- sfx_impdth, // 025
- sfx_impact, // 026
- sfx_imppai, // 027
- sfx_mumsit, // 028
- sfx_mumat1, // 029
- sfx_mumat2, // 030
- sfx_mumdth, // 031
- sfx_mumact, // 032
- sfx_mumpai, // 033
- sfx_mumhed, // 034
- sfx_bstsit, // 035
- sfx_bstatk, // 036
- sfx_bstdth, // 037
- sfx_bstact, // 038
- sfx_bstpai, // 039
- sfx_clksit, // 040
- sfx_clkatk, // 041
- sfx_clkdth, // 042
- sfx_clkact, // 043
- sfx_clkpai, // 044
- sfx_snksit, // 045
- sfx_snkatk, // 046
- sfx_snkdth, // 047
- sfx_snkact, // 048
- sfx_snkpai, // 049
- sfx_kgtsit, // 050
- sfx_kgtatk, // 051
- sfx_kgtat2, // 052
- sfx_kgtdth, // 053
- sfx_kgtact, // 054
- sfx_kgtpai, // 055
- sfx_wizsit, // 056
- sfx_wizatk, // 057
- sfx_wizdth, // 058
- sfx_wizact, // 059
- sfx_wizpai, // 060
- sfx_minsit, // 061
- sfx_minat1, // 062
- sfx_minat2, // 063
- sfx_minat3, // 064
- sfx_mindth, // 065
- sfx_minact, // 066
- sfx_minpai, // 067
- sfx_hedsit, // 068
- sfx_hedat1, // 069
- sfx_hedat2, // 070
- sfx_hedat3, // 071
- sfx_heddth, // 072
- sfx_hedact, // 073
- sfx_hedpai, // 074
- sfx_sorzap, // 075
- sfx_sorrise, // 076
- sfx_sorsit, // 077
- sfx_soratk, // 078
- sfx_soract, // 079
- sfx_sorpai, // 080
- sfx_sordsph, // 081
- sfx_sordexp, // 082
- sfx_sordbon, // 083
- sfx_sbtsit, // 084
- sfx_sbtatk, // 085
- sfx_sbtdth, // 086
- sfx_sbtact, // 087
- sfx_sbtpai, // 088
- sfx_plroof, // 089
- sfx_plrpai, // 090
- sfx_plrdth, // 091
- sfx_gibdth, // 092
- sfx_plrwdth, // 093
- sfx_plrcdth, // 094
- sfx_itemup, // 095
- sfx_wpnup, // 096
- sfx_telept, // 097
- sfx_doropn, // 098
- sfx_dorcls, // 099
- sfx_dormov, // 100
- sfx_artiup, // 101
- sfx_switch, // 102
- sfx_pstart, // 103
- sfx_pstop, // 104
- sfx_stnmov, // 105
- sfx_chicpai, // 106
- sfx_chicatk, // 107
- sfx_chicdth, // 108
- sfx_chicact, // 109
- sfx_chicpk1, // 110
- sfx_chicpk2, // 111
- sfx_chicpk3, // 112
- sfx_keyup, // 113
- sfx_ripslop, // 114
- sfx_newpod, // 115
- sfx_podexp, // 116
- sfx_bounce, // 117
- sfx_volsht, // 118
- sfx_volhit, // 119
- sfx_burn, // 120
- sfx_splash, // 121
- sfx_gloop, // 122
- sfx_respawn, // 123
- sfx_blssht, // 124
- sfx_blshit, // 125
- sfx_chat, // 126
- sfx_artiuse, // 127
- sfx_gfrag, // 128
- sfx_waterfl, // 129
- sfx_wind, // 130
- sfx_amb1, // 131
- sfx_amb2, // 132
- sfx_amb3, // 133
- sfx_amb4, // 134
- sfx_amb5, // 135
- sfx_amb6, // 136
- sfx_amb7, // 137
- sfx_amb8, // 138
- sfx_amb9, // 139
- sfx_amb10, // 140
- sfx_amb11, // 141
+ SFX_NONE, // 000
+ SFX_GLDHIT, // 001
+ SFX_GNTFUL, // 002
+ SFX_GNTHIT, // 003
+ SFX_GNTPOW, // 004
+ SFX_GNTACT, // 005
+ SFX_GNTUSE, // 006
+ SFX_PHOSHT, // 007
+ SFX_PHOHIT, // 008
+ SFX_PHOPOW, // 009
+ SFX_LOBSHT, // 010
+ SFX_LOBHIT, // 011
+ SFX_LOBPOW, // 012
+ SFX_HRNSHT, // 013
+ SFX_HRNHIT, // 014
+ SFX_HRNPOW, // 015
+ SFX_RAMPHIT, // 016
+ SFX_RAMRAIN, // 017
+ SFX_BOWSHT, // 018
+ SFX_STFHIT, // 019
+ SFX_STFPOW, // 020
+ SFX_STFCRK, // 021
+ SFX_IMPSIT, // 022
+ SFX_IMPAT1, // 023
+ SFX_IMPAT2, // 024
+ SFX_IMPDTH, // 025
+ SFX_IMPACT, // 026
+ SFX_IMPPAI, // 027
+ SFX_MUMSIT, // 028
+ SFX_MUMAT1, // 029
+ SFX_MUMAT2, // 030
+ SFX_MUMDTH, // 031
+ SFX_MUMACT, // 032
+ SFX_MUMPAI, // 033
+ SFX_MUMHED, // 034
+ SFX_BSTSIT, // 035
+ SFX_BSTATK, // 036
+ SFX_BSTDTH, // 037
+ SFX_BSTACT, // 038
+ SFX_BSTPAI, // 039
+ SFX_CLKSIT, // 040
+ SFX_CLKATK, // 041
+ SFX_CLKDTH, // 042
+ SFX_CLKACT, // 043
+ SFX_CLKPAI, // 044
+ SFX_SNKSIT, // 045
+ SFX_SNKATK, // 046
+ SFX_SNKDTH, // 047
+ SFX_SNKACT, // 048
+ SFX_SNKPAI, // 049
+ SFX_KGTSIT, // 050
+ SFX_KGTATK, // 051
+ SFX_KGTAT2, // 052
+ SFX_KGTDTH, // 053
+ SFX_KGTACT, // 054
+ SFX_KGTPAI, // 055
+ SFX_WIZSIT, // 056
+ SFX_WIZATK, // 057
+ SFX_WIZDTH, // 058
+ SFX_WIZACT, // 059
+ SFX_WIZPAI, // 060
+ SFX_MINSIT, // 061
+ SFX_MINAT1, // 062
+ SFX_MINAT2, // 063
+ SFX_MINAT3, // 064
+ SFX_MINDTH, // 065
+ SFX_MINACT, // 066
+ SFX_MINPAI, // 067
+ SFX_HEDSIT, // 068
+ SFX_HEDAT1, // 069
+ SFX_HEDAT2, // 070
+ SFX_HEDAT3, // 071
+ SFX_HEDDTH, // 072
+ SFX_HEDACT, // 073
+ SFX_HEDPAI, // 074
+ SFX_SORZAP, // 075
+ SFX_SORRISE, // 076
+ SFX_SORSIT, // 077
+ SFX_SORATK, // 078
+ SFX_SORACT, // 079
+ SFX_SORPAI, // 080
+ SFX_SORDSPH, // 081
+ SFX_SORDEXP, // 082
+ SFX_SORDBON, // 083
+ SFX_SBTSIT, // 084
+ SFX_SBTATK, // 085
+ SFX_SBTDTH, // 086
+ SFX_SBTACT, // 087
+ SFX_SBTPAI, // 088
+ SFX_PLROOF, // 089
+ SFX_PLRPAI, // 090
+ SFX_PLRDTH, // 091
+ SFX_GIBDTH, // 092
+ SFX_PLRWDTH, // 093
+ SFX_PLRCDTH, // 094
+ SFX_ITEMUP, // 095
+ SFX_WPNUP, // 096
+ SFX_TELEPT, // 097
+ SFX_DOROPN, // 098
+ SFX_DORCLS, // 099
+ SFX_DORMOV, // 100
+ SFX_ARTIUP, // 101
+ SFX_SWITCH, // 102
+ SFX_PSTART, // 103
+ SFX_PSTOP, // 104
+ SFX_STNMOV, // 105
+ SFX_CHICPAI, // 106
+ SFX_CHICATK, // 107
+ SFX_CHICDTH, // 108
+ SFX_CHICACT, // 109
+ SFX_CHICPK1, // 110
+ SFX_CHICPK2, // 111
+ SFX_CHICPK3, // 112
+ SFX_KEYUP, // 113
+ SFX_RIPSLOP, // 114
+ SFX_NEWPOD, // 115
+ SFX_PODEXP, // 116
+ SFX_BOUNCE, // 117
+ SFX_VOLSHT, // 118
+ SFX_VOLHIT, // 119
+ SFX_BURN, // 120
+ SFX_SPLASH, // 121
+ SFX_GLOOP, // 122
+ SFX_RESPAWN, // 123
+ SFX_BLSSHT, // 124
+ SFX_BLSHIT, // 125
+ SFX_CHAT, // 126
+ SFX_ARTIUSE, // 127
+ SFX_GFRAG, // 128
+ SFX_WATERFL, // 129
+ SFX_WIND, // 130
+ SFX_AMB1, // 131
+ SFX_AMB2, // 132
+ SFX_AMB3, // 133
+ SFX_AMB4, // 134
+ SFX_AMB5, // 135
+ SFX_AMB6, // 136
+ SFX_AMB7, // 137
+ SFX_AMB8, // 138
+ SFX_AMB9, // 139
+ SFX_AMB10, // 140
+ SFX_AMB11, // 141
NUMSFX // 142
} sfxenum_t;
// Music.
typedef enum {
- mus_e1m1, // 000
- mus_e1m2, // 001
- mus_e1m3, // 002
- mus_e1m4, // 003
- mus_e1m5, // 004
- mus_e1m6, // 005
- mus_e1m7, // 006
- mus_e1m8, // 007
- mus_e1m9, // 008
- mus_e2m1, // 009
- mus_e2m2, // 010
- mus_e2m3, // 011
- mus_e2m4, // 012
- mus_e2m5, // 013
- mus_e2m6, // 014
- mus_e2m7, // 015
- mus_e2m8, // 016
- mus_e2m9, // 017
- mus_e3m1, // 018
- mus_e3m2, // 019
- mus_e3m3, // 020
- mus_e3m4, // 021
- mus_e3m5, // 022
- mus_e3m6, // 023
- mus_e3m7, // 024
- mus_e3m8, // 025
- mus_e3m9, // 026
- mus_e4m1, // 027
- mus_e4m2, // 028
- mus_e4m3, // 029
- mus_e4m4, // 030
- mus_e4m5, // 031
- mus_e4m6, // 032
- mus_e4m7, // 033
- mus_e4m8, // 034
- mus_e4m9, // 035
- mus_e5m1, // 036
- mus_e5m2, // 037
- mus_e5m3, // 038
- mus_e5m4, // 039
- mus_e5m5, // 040
- mus_e5m6, // 041
- mus_e5m7, // 042
- mus_e5m8, // 043
- mus_e5m9, // 044
- mus_e6m1, // 045
- mus_e6m2, // 046
- mus_e6m3, // 047
- mus_titl, // 048
- mus_intr, // 049
- mus_cptd, // 050
+ MUS_E1M1, // 000
+ MUS_E1M2, // 001
+ MUS_E1M3, // 002
+ MUS_E1M4, // 003
+ MUS_E1M5, // 004
+ MUS_E1M6, // 005
+ MUS_E1M7, // 006
+ MUS_E1M8, // 007
+ MUS_E1M9, // 008
+ MUS_E2M1, // 009
+ MUS_E2M2, // 010
+ MUS_E2M3, // 011
+ MUS_E2M4, // 012
+ MUS_E2M5, // 013
+ MUS_E2M6, // 014
+ MUS_E2M7, // 015
+ MUS_E2M8, // 016
+ MUS_E2M9, // 017
+ MUS_E3M1, // 018
+ MUS_E3M2, // 019
+ MUS_E3M3, // 020
+ MUS_E3M4, // 021
+ MUS_E3M5, // 022
+ MUS_E3M6, // 023
+ MUS_E3M7, // 024
+ MUS_E3M8, // 025
+ MUS_E3M9, // 026
+ MUS_E4M1, // 027
+ MUS_E4M2, // 028
+ MUS_E4M3, // 029
+ MUS_E4M4, // 030
+ MUS_E4M5, // 031
+ MUS_E4M6, // 032
+ MUS_E4M7, // 033
+ MUS_E4M8, // 034
+ MUS_E4M9, // 035
+ MUS_E5M1, // 036
+ MUS_E5M2, // 037
+ MUS_E5M3, // 038
+ MUS_E5M4, // 039
+ MUS_E5M5, // 040
+ MUS_E5M6, // 041
+ MUS_E5M7, // 042
+ MUS_E5M8, // 043
+ MUS_E5M9, // 044
+ MUS_E6M1, // 045
+ MUS_E6M2, // 046
+ MUS_E6M3, // 047
+ MUS_TITL, // 048
+ MUS_INTR, // 049
+ MUS_CPTD, // 050
NUMMUSIC // 051
} musicenum_t;
Modified: trunk/doomsday/plugins/jheretic/src/in_lude.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/in_lude.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/in_lude.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -451,7 +451,7 @@
{
interState = 2;
skipIntermission = false;
- S_StartSound(sfx_dorcls, NULL);
+ S_StartSound(SFX_DORCLS, NULL);
NetSv_Intermission(IMF_STATE, interState, 0);
return;
}
@@ -459,7 +459,7 @@
interState = 3;
cnt = 10;
skipIntermission = false;
- S_StartSound(sfx_dorcls, NULL);
+ S_StartSound(SFX_DORCLS, NULL);
NetSv_Intermission(IMF_STATE, interState, 0);
}
}
@@ -524,7 +524,7 @@
if(oldInterState != 2 && interState == 2)
{
- S_LocalSound(sfx_pstop, NULL);
+ S_LocalSound(SFX_PSTOP, NULL);
}
oldInterState = interState;
@@ -695,7 +695,7 @@
if(sounds < 1 && interTime >= 30)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
@@ -712,7 +712,7 @@
if(sounds < 2 && interTime >= 60)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
@@ -729,7 +729,7 @@
if(sounds < 3 && interTime >= 90)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
@@ -746,7 +746,7 @@
if(sounds < 4 && interTime >= 150)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
@@ -807,7 +807,7 @@
}
else if(interTime >= 40 && sounds < 1)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
@@ -871,13 +871,13 @@
if(interTime >= 20 && sounds < 1)
{
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
sounds++;
}
if(interTime >= 100 && slaughterBoy && sounds < 2)
{
- S_LocalSound(sfx_wpnup, NULL);
+ S_LocalSound(SFX_WPNUP, NULL);
sounds++;
}
Modified: trunk/doomsday/plugins/jheretic/src/m_cheat.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/m_cheat.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/m_cheat.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -360,7 +360,7 @@
if(cheatAddKey(&cheats[i], key, &eat))
{
cheats[i].func(&players[CONSOLEPLAYER], &cheats[i]);
- S_LocalSound(sfx_dorcls, NULL);
+ S_LocalSound(SFX_DORCLS, NULL);
}
}
@@ -784,7 +784,7 @@
{
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_chat, NULL);
+ S_LocalSound(SFX_CHAT, NULL);
Con_Printf("Can only suicide when in a game!\n");
return true;
}
@@ -906,7 +906,7 @@
if(G_GetGameState() != GS_LEVEL)
{
- S_LocalSound(sfx_chat, NULL);
+ S_LocalSound(SFX_CHAT, NULL);
Con_Printf("Can only exit a level when in a game!\n");
return true;
}
Modified: trunk/doomsday/plugins/jheretic/src/p_enemy.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_enemy.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_enemy.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -842,7 +842,7 @@
if(P_CheckMeleeRange(actor))
{
P_DamageMobj(actor->target, actor, actor, HITDICE(3));
- S_StartSound(sfx_kgtat2, actor);
+ S_StartSound(SFX_KGTAT2, actor);
return;
}
@@ -1024,7 +1024,7 @@
mo->target = oldChicken.target;
fog = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY], pos[VZ] + TELEFOGHEIGHT);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
return true;
}
@@ -1101,11 +1101,11 @@
if(P_CheckMeleeRange(actor))
{
P_DamageMobj(actor->target, actor, actor, HITDICE(2));
- S_StartSound(sfx_mumat2, actor);
+ S_StartSound(SFX_MUMAT2, actor);
return;
}
- S_StartSound(sfx_mumat1, actor);
+ S_StartSound(SFX_MUMAT1, actor);
}
/**
@@ -1251,10 +1251,10 @@
if(P_TeleportMove(actor, x, y, false))
{
mo = P_SpawnMobj3fv(MT_SOR2TELEFADE, prevpos);
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
P_MobjChangeState(actor, S_SOR2_TELE1);
- S_StartSound(sfx_telept, actor);
+ S_StartSound(SFX_TELEPT, actor);
actor->pos[VZ] = actor->floorZ;
actor->angle = bossSpots[i % bossSpotCount].angle;
actor->mom[MX] = actor->mom[MY] = actor->mom[MZ] = 0;
@@ -1342,7 +1342,7 @@
actor->flags &= ~MF_MISSILE;
fog = P_SpawnMobj3fv(MT_TFOG, actor->pos);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
}
void C_DECL A_Sor2DthInit(mobj_t *actor)
@@ -1367,32 +1367,32 @@
*/
void C_DECL A_SorZap(mobj_t *actor)
{
- S_StartSound(sfx_sorzap, NULL);
+ S_StartSound(SFX_SORZAP, NULL);
}
void C_DECL A_SorRise(mobj_t *actor)
{
- S_StartSound(sfx_sorrise, NULL);
+ S_StartSound(SFX_SORRISE, NULL);
}
void C_DECL A_SorDSph(mobj_t *actor)
{
- S_StartSound(sfx_sordsph, NULL);
+ S_StartSound(SFX_SORDSPH, NULL);
}
void C_DECL A_SorDExp(mobj_t *actor)
{
- S_StartSound(sfx_sordexp, NULL);
+ S_StartSound(SFX_SORDEXP, NULL);
}
void C_DECL A_SorDBon(mobj_t *actor)
{
- S_StartSound(sfx_sordbon, NULL);
+ S_StartSound(SFX_SORDBON, NULL);
}
void C_DECL A_SorSightSnd(mobj_t *actor)
{
- S_StartSound(sfx_sorsit, NULL);
+ S_StartSound(SFX_SORSIT, NULL);
}
/**
@@ -1405,7 +1405,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_stfpow, actor);
+ S_StartSound(SFX_STFPOW, actor);
if(P_CheckMeleeRange(actor))
{
@@ -1432,7 +1432,7 @@
if(!target)
return;
- S_StartSound(sfx_minsit, actor);
+ S_StartSound(SFX_MINSIT, actor);
dist = P_ApproxDistance(actor->pos[VX] - target->pos[VX],
actor->pos[VY] - target->pos[VY]);
@@ -1500,7 +1500,7 @@
if(!actor->target)
return;
- S_StartSound(sfx_minat2, actor);
+ S_StartSound(SFX_MINAT2, actor);
if(P_CheckMeleeRange(actor))
{
@@ -1511,7 +1511,7 @@
mo = P_SpawnMissile(MT_MNTRFX1, actor, actor->target);
if(mo)
{
- S_StartSound(sfx_minat2, mo);
+ S_StartSound(SFX_MINAT2, mo);
momZ = mo->mom[MZ];
angle = mo->angle;
@@ -1548,7 +1548,7 @@
{
mo = P_SpawnMissile(MT_MNTRFX2, actor, actor->target);
if(mo != NULL)
- S_StartSound(sfx_minat1, mo);
+ S_StartSound(SFX_MINAT1, mo);
}
if(P_Random() < 192 && actor->special2 == 0)
@@ -1625,7 +1625,7 @@
{
// Ice ball
P_SpawnMissile(MT_HEADFX1, actor, target);
- S_StartSound(sfx_hedat2, actor);
+ S_StartSound(SFX_HEDAT2, actor);
}
else if(randAttack < atkResolve2[(FLT2FIX(dist) != 0)? 1 : 0])
{
@@ -1639,7 +1639,7 @@
fire = P_SpawnMobj3fv(MT_HEADFX3, baseFire->pos);
if(i == 0)
- S_StartSound(sfx_hedat1, actor);
+ S_StartSound(SFX_HEDAT1, actor);
fire->target = baseFire->target;
fire->angle = baseFire->angle;
@@ -1665,7 +1665,7 @@
mo->special2 = 50; // Timer for active sound.
mo->health = 20 * TICSPERSEC; // Duration.
- S_StartSound(sfx_hedat3, actor);
+ S_StartSound(SFX_HEDAT3, actor);
}
}
}
@@ -1684,7 +1684,7 @@
if((actor->special2 -= 3) < 0)
{
actor->special2 = 58 + (P_Random() & 31);
- S_StartSound(sfx_hedat3, actor);
+ S_StartSound(SFX_HEDAT3, actor);
}
if(actor->tracer && actor->tracer->flags & MF_SHADOW)
@@ -1832,7 +1832,7 @@
if(actor->special1 < 10)
{
// Wimpy death sound.
- S_StartSound(sfx_plrwdth, actor);
+ S_StartSound(SFX_PLRWDTH, actor);
}
else if(actor->health > -50)
{
@@ -1842,12 +1842,12 @@
else if(actor->health > -100)
{
// Crazy death sound.
- S_StartSound(sfx_plrcdth, actor);
+ S_StartSound(SFX_PLRCDTH, actor);
}
else
{
// Extreme death sound.
- S_StartSound(sfx_gibdth, actor);
+ S_StartSound(SFX_GIBDTH, actor);
}
break;
@@ -2020,7 +2020,7 @@
P_MobjChangeState(mo, S_POD_GROW1);
P_ThrustMobj(mo, P_Random() << 24, 4.5f);
- S_StartSound(sfx_newpod, mo);
+ S_StartSound(SFX_NEWPOD, mo);
// Increment generated pod count.
actor->special1++;
@@ -2128,11 +2128,11 @@
switch(mo->type)
{
case MT_SOUNDWATERFALL:
- sound = sfx_waterfl;
+ sound = SFX_WATERFL;
break;
case MT_SOUNDWIND:
- sound = sfx_wind;
+ sound = SFX_WIND;
break;
default:
@@ -2230,7 +2230,7 @@
blast->mom[MY] = 1 * FIX2FLT(finesine[an]);
blast->mom[MZ] = 2.5f + FIX2FLT(P_Random() << 10);
- S_StartSound(sfx_volsht, blast);
+ S_StartSound(SFX_VOLSHT, blast);
P_CheckMissileSpawn(blast);
}
}
@@ -2339,7 +2339,7 @@
void C_DECL A_FlameSnd(mobj_t *actor)
{
- S_StartSound(sfx_hedat1, actor); // Burn sound.
+ S_StartSound(SFX_HEDAT1, actor); // Burn sound.
}
void C_DECL A_HideThing(mobj_t *actor)
Modified: trunk/doomsday/plugins/jheretic/src/p_inter.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_inter.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_inter.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -170,7 +170,7 @@
if(player == &players[CONSOLEPLAYER])
ST_HUDUnHide(HUE_ON_PICKUP_WEAPON);
- S_ConsoleSound(sfx_wpnup, NULL, player - players);
+ S_ConsoleSound(SFX_WPNUP, NULL, player - players);
return false;
}
else
@@ -376,14 +376,14 @@
P_MobjChangeState(arti, S_DEADARTI1);
}
- S_StartSound(sfx_artiup, arti);
+ S_StartSound(SFX_ARTIUP, arti);
}
void C_DECL A_RestoreArtifact(mobj_t *arti)
{
arti->flags |= MF_SPECIAL;
P_MobjChangeState(arti, arti->info->spawnState);
- S_StartSound(sfx_respawn, arti);
+ S_StartSound(SFX_RESPAWN, arti);
}
void P_HideSpecialThing(mobj_t *thing)
@@ -404,7 +404,7 @@
}
thing->flags2 &= ~MF2_DONTDRAW;
- S_StartSound(sfx_respawn, thing);
+ S_StartSound(SFX_RESPAWN, thing);
}
void C_DECL A_RestoreSpecialThing2(mobj_t *thing)
@@ -432,7 +432,7 @@
return; // Toucher is dead.
}
- sound = sfx_itemup;
+ sound = SFX_ITEMUP;
player = toucher->player;
if(player == NULL)
return;
@@ -495,7 +495,7 @@
}
P_GiveKey(player, KT_BLUE);
- sound = sfx_keyup;
+ sound = SFX_KEYUP;
if(!IS_NETGAME)
{
break;
@@ -508,7 +508,7 @@
P_SetMessage(player, TXT_GOTYELLOWKEY, false);
}
- sound = sfx_keyup;
+ sound = SFX_KEYUP;
P_GiveKey(player, KT_YELLOW);
if(!IS_NETGAME)
{
@@ -522,7 +522,7 @@
P_SetMessage(player, TXT_GOTGREENKEY, false);
}
- sound = sfx_keyup;
+ sound = SFX_KEYUP;
P_GiveKey(player, KT_GREEN);
if(!IS_NETGAME)
{
@@ -702,7 +702,7 @@
return;
P_SetMessage(player, TXT_WPNMACE, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_WBOW: // Weapon_Crossbow.
@@ -710,7 +710,7 @@
return;
P_SetMessage(player, TXT_WPNCROSSBOW, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_WBLS: // Weapon_Blaster.
@@ -718,7 +718,7 @@
return;
P_SetMessage(player, TXT_WPNBLASTER, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_WSKL: // Weapon_SkullRod.
@@ -726,7 +726,7 @@
return;
P_SetMessage(player, TXT_WPNSKULLROD, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_WPHX: // Weapon_PhoenixRod.
@@ -734,7 +734,7 @@
return;
P_SetMessage(player, TXT_WPNPHOENIXROD, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
case SPR_WGNT: // Weapon_Gauntlets.
@@ -742,7 +742,7 @@
return;
P_SetMessage(player, TXT_WPNGAUNTLETS, false);
- sound = sfx_wpnup;
+ sound = SFX_WPNUP;
break;
default:
@@ -934,7 +934,7 @@
P_MobjChangeState(pmo, S_FREETARGMOBJ);
fog = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY], pos[VZ] + TELEFOGHEIGHT);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
chicken = P_SpawnMobj3fv(MT_CHICPLAYER, pos);
chicken->special1 = player->readyWeapon;
@@ -993,7 +993,7 @@
P_MobjChangeState(actor, S_FREETARGMOBJ);
fog = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY], pos[VZ] + TELEFOGHEIGHT);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
chicken = P_SpawnMobj3fv(MT_CHICKEN, pos);
chicken->special2 = moType;
Modified: trunk/doomsday/plugins/jheretic/src/p_mobj.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_mobj.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_mobj.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -616,7 +616,7 @@
mo->dPlayer->viewHeightDelta = mo->mom[MZ] / 8;
if(mo->player->health > 0)
- S_StartSound(sfx_plroof, mo);
+ S_StartSound(SFX_PLROOF, mo);
}
mo->mom[MZ] = 0;
}
@@ -679,7 +679,7 @@
// Fix DOOM bug - dead players grunting when hitting the ground
// (e.g., after an archvile attack)
if(mo->player->health > 0)
- S_StartSound(sfx_plroof, mo);
+ S_StartSound(SFX_PLROOF, mo);
}
P_HitFloor(mo);
@@ -794,14 +794,14 @@
mo = P_SpawnMobj3f(MT_TFOG, mobj->pos[VX], mobj->pos[VY],
P_GetFloatp(mobj->subsector, DMU_FLOOR_HEIGHT) + TELEFOGHEIGHT);
// Initiate teleport sound.
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
// Spawn a teleport fog at the new spot.
ss = R_PointInSubsector(pos[VX], pos[VY]);
mo = P_SpawnMobj3f(MT_TFOG, pos[VX], pos[VY],
P_GetFloatp(ss, DMU_FLOOR_HEIGHT) + TELEFOGHEIGHT);
- S_StartSound(sfx_telept, mo);
+ S_StartSound(SFX_TELEPT, mo);
if(mobj->info->flags & MF_SPAWNCEILING)
pos[VZ] = ONCEILINGZ;
@@ -1542,7 +1542,7 @@
mo->mom[MY] = FIX2FLT((P_Random() - P_Random()) << 8);
mo->mom[MZ] = 2 + FIX2FLT(P_Random() << 8);
}
- S_StartSound(sfx_gloop, mo);
+ S_StartSound(SFX_GLOOP, mo);
return FLOOR_WATER;
case FLOOR_LAVA:
@@ -1555,7 +1555,7 @@
{
mo->mom[MZ] = 1 + FIX2FLT((P_Random() << 7));
}
- S_StartSound(sfx_burn, mo);
+ S_StartSound(SFX_BURN, mo);
return FLOOR_LAVA;
case FLOOR_SLUDGE:
@@ -1878,11 +1878,11 @@
switch(actor->type)
{
case MT_KNIGHTAXE:
- S_StartSound(sfx_kgtatk, actor);
+ S_StartSound(SFX_KGTATK, actor);
break;
case MT_MUMMYFX1:
- S_StartSound(sfx_mumhed, actor);
+ S_StartSound(SFX_MUMHED, actor);
break;
default:
Modified: trunk/doomsday/plugins/jheretic/src/p_pspr.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_pspr.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_pspr.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -117,7 +117,7 @@
0, // raise sound id
S_STAFFDOWN2, // downstate
S_STAFFREADY2_1, // readystate
- sfx_stfcrk, // readysound
+ SFX_STFCRK, // readysound
S_STAFFATK2_1, // atkstate
S_STAFFATK2_1, // holdatkstate
S_NULL // flashstate
@@ -575,7 +575,7 @@
{0, 0, 0, 0, 0, 0}, // pershot: AT_CRYSTAL | AT_ARROW | etc...
true, // autofire when raised if fire held
S_GAUNTLETUP, // upstate
- sfx_gntact, // raise sound id
+ SFX_GNTACT, // raise sound id
S_GAUNTLETDOWN, // downstate
S_GAUNTLETREADY, // readystate
0, // readysound
@@ -590,7 +590,7 @@
{0, 0, 0, 0, 0, 0}, // pershot: AT_CRYSTAL | AT_ARROW | etc...
true, // autofire when raised if fire held
S_GAUNTLETUP2, // upstate
- sfx_gntact, // raise sound id
+ SFX_GNTACT, // raise sound id
S_GAUNTLETDOWN2, // downstate
S_GAUNTLETREADY2_1, // readystate
0, // readysound
@@ -843,7 +843,7 @@
if(player->readyWeapon == WT_EIGHTH && !player->refire)
{
// Play the sound for the initial gauntlet attack
- S_StartSoundEx(sfx_gntuse, player->plr->mo);
+ S_StartSoundEx(SFX_GNTUSE, player->plr->mo);
}
player->update |= PSF_AMMO;
@@ -1137,7 +1137,7 @@
lineTarget->pos[VX], lineTarget->pos[VY]);
}
- S_StartSoundEx(sfx_chicpk1 + (P_Random() % 3), player->plr->mo);
+ S_StartSoundEx(SFX_CHICPK1 + (P_Random() % 3), player->plr->mo);
player->chickenPeck = 12;
psp->tics -= P_Random() & 7;
}
@@ -1162,7 +1162,7 @@
lineTarget->pos[VX], lineTarget->pos[VY]);
}
- S_StartSoundEx(sfx_chicpk1 + (P_Random() % 3), player->plr->mo);
+ S_StartSoundEx(SFX_CHICPK1 + (P_Random() % 3), player->plr->mo);
player->chickenPeck = 12;
psp->tics -= P_Random() & 3;
}
@@ -1221,7 +1221,7 @@
int damage;
mo = player->plr->mo;
- S_StartSoundEx(sfx_gldhit, mo);
+ S_StartSoundEx(SFX_GLDHIT, mo);
P_ShotAmmo(player);
P_BulletSlope(mo);
@@ -1235,7 +1235,7 @@
puffType = MT_BLASTERPUFF1;
P_LineAttack(mo, angle, MISSILERANGE, bulletSlope, damage);
- S_StartSoundEx(sfx_blssht, mo);
+ S_StartSoundEx(SFX_BLSSHT, mo);
}
void C_DECL A_FireBlasterPL2(player_t* player, pspdef_t* psp)
@@ -1243,7 +1243,7 @@
mobj_t* mo;
P_ShotAmmo(player);
- S_StartSoundEx(sfx_blssht, player->plr->mo);
+ S_StartSoundEx(SFX_BLSSHT, player->plr->mo);
if(IS_CLIENT)
return;
@@ -1260,7 +1260,7 @@
mo = player->plr->mo;
P_ShotAmmo(player);
- S_StartSoundEx(sfx_gldhit, player->plr->mo);
+ S_StartSoundEx(SFX_GLDHIT, player->plr->mo);
if(IS_CLIENT)
return;
@@ -1285,7 +1285,7 @@
mo = player->plr->mo;
P_ShotAmmo(player);
- S_StartSoundEx(sfx_gldhit, player->plr->mo);
+ S_StartSoundEx(SFX_GLDHIT, player->plr->mo);
if(IS_CLIENT)
return;
@@ -1335,7 +1335,7 @@
ball->info->speed * FIX2FLT(finesine[an]);
P_CheckMissileSpawn(ball);
- S_StartSound(sfx_lobsht, ball);
+ S_StartSound(SFX_LOBSHT, ball);
}
void C_DECL A_FireMacePL1(player_t *player, pspdef_t *psp)
@@ -1404,13 +1404,13 @@
ball->mom[MZ] = FIX2FLT(FLT2FIX(ball->mom[MZ] * 192) >> 8);
ball->flags2 &= ~MF2_FLOORBOUNCE;
P_MobjChangeState(ball, ball->info->spawnState);
- S_StartSound(sfx_bounce, ball);
+ S_StartSound(SFX_BOUNCE, ball);
}
else
{ // Explode.
ball->flags |= MF_NOGRAVITY;
ball->flags2 &= ~MF2_LOGRAV;
- S_StartSound(sfx_lobhit, ball);
+ S_StartSound(SFX_LOBHIT, ball);
}
}
@@ -1469,7 +1469,7 @@
mobj_t *mo;
P_ShotAmmo(player);
- S_StartSoundEx(sfx_lobsht, player->plr->mo);
+ S_StartSoundEx(SFX_LOBSHT, player->plr->mo);
if(IS_CLIENT)
return;
@@ -1546,13 +1546,13 @@
}
P_MobjChangeState(ball, ball->info->spawnState);
- S_StartSound(sfx_pstop, ball);
+ S_StartSound(SFX_PSTOP, ball);
}
else
{ // Explode.
ball->flags |= MF_NOGRAVITY;
ball->flags2 &= ~MF2_LOGRAV;
- S_StartSound(sfx_phohit, ball);
+ S_StartSound(SFX_PHOHIT, ball);
}
}
@@ -1667,7 +1667,7 @@
if(lineTarget)
missileMobj->tracer = lineTarget;
- S_StartSound(sfx_hrnpow, missileMobj);
+ S_StartSound(SFX_HRNPOW, missileMobj);
}
void C_DECL A_SkullRodPL2Seek(mobj_t *actor)
@@ -1777,7 +1777,7 @@
P_CheckMissileSpawn(mo);
if(!(actor->special1 & 31))
- S_StartSound(sfx_ramrain, actor);
+ S_StartSound(SFX_RAMRAIN, actor);
actor->special1++;
}
@@ -1886,7 +1886,7 @@
if(!player->refire || !(levelTime % 38))
{
- S_StartSoundEx(sfx_phopow, player->plr->mo);
+ S_StartSoundEx(SFX_PHOPOW, player->plr->mo);
}
P_CheckMissileSpawn(mo);
@@ -1940,7 +1940,7 @@
player->plr->extraLight = !player->plr->extraLight;
}
- S_StartSoundEx(sfx_gntful, player->plr->mo);
+ S_StartSoundEx(SFX_GNTFUL, player->plr->mo);
return;
}
@@ -1961,11 +1961,11 @@
if(player->powers[PT_WEAPONLEVEL2])
{
P_GiveBody(player, damage / 2);
- S_StartSoundEx(sfx_gntpow, player->plr->mo);
+ S_StartSoundEx(SFX_GNTPOW, player->plr->mo);
}
else
{
- S_StartSoundEx(sfx_gnthit, player->plr->mo);
+ S_StartSoundEx(SFX_GNTHIT, player->plr->mo);
}
// Turn to face target.
Modified: trunk/doomsday/plugins/jheretic/src/p_spec.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_spec.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_spec.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -815,7 +815,7 @@
if(cfg.secretMsg)
{
P_SetMessage(player, "You've found a secret area!", false);
- S_ConsoleSound(sfx_wpnup, 0, player - players);
+ S_ConsoleSound(SFX_WPNUP, 0, player - players);
}
break;
@@ -937,7 +937,7 @@
(int) button->section);
}
- S_StartSound(sfx_switch,
+ S_StartSound(SFX_SWITCH,
P_GetPtrp(frontsector, DMU_SOUND_ORIGIN));
button->line = NULL;
@@ -1151,110 +1151,110 @@
afxcmd_end
};
int AmbSndSeq1[] = { // Scream
- afxcmd_play, sfx_amb1,
+ afxcmd_play, SFX_AMB1,
afxcmd_end
};
int AmbSndSeq2[] = { // Squish
- afxcmd_play, sfx_amb2,
+ afxcmd_play, SFX_AMB2,
afxcmd_end
};
int AmbSndSeq3[] = { // Drops
- afxcmd_play, sfx_amb3,
+ afxcmd_play, SFX_AMB3,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
- afxcmd_play, sfx_amb7,
+ afxcmd_play, SFX_AMB7,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
- afxcmd_play, sfx_amb3,
+ afxcmd_play, SFX_AMB3,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
- afxcmd_play, sfx_amb7,
+ afxcmd_play, SFX_AMB7,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
- afxcmd_play, sfx_amb3,
+ afxcmd_play, SFX_AMB3,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
- afxcmd_play, sfx_amb7,
+ afxcmd_play, SFX_AMB7,
afxcmd_delay, 16,
afxcmd_delayrand, 31,
afxcmd_end
};
int AmbSndSeq4[] = { // SlowFootSteps
- afxcmd_play, sfx_amb4,
+ afxcmd_play, SFX_AMB4,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 15,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_end
};
int AmbSndSeq5[] = { // Heartbeat
- afxcmd_play, sfx_amb5,
+ afxcmd_play, SFX_AMB5,
afxcmd_delay, 35,
- afxcmd_play, sfx_amb5,
+ afxcmd_play, SFX_AMB5,
afxcmd_delay, 35,
- afxcmd_play, sfx_amb5,
+ afxcmd_play, SFX_AMB5,
afxcmd_delay, 35,
- afxcmd_play, sfx_amb5,
+ afxcmd_play, SFX_AMB5,
afxcmd_end
};
int AmbSndSeq6[] = { // Bells
- afxcmd_play, sfx_amb6,
+ afxcmd_play, SFX_AMB6,
afxcmd_delay, 17,
- afxcmd_playrelvol, sfx_amb6, -8,
+ afxcmd_playrelvol, SFX_AMB6, -8,
afxcmd_delay, 17,
- afxcmd_playrelvol, sfx_amb6, -8,
+ afxcmd_playrelvol, SFX_AMB6, -8,
afxcmd_delay, 17,
- afxcmd_playrelvol, sfx_amb6, -8,
+ afxcmd_playrelvol, SFX_AMB6, -8,
afxcmd_end
};
int AmbSndSeq7[] = { // Growl
- afxcmd_play, sfx_bstsit,
+ afxcmd_play, SFX_BSTSIT,
afxcmd_end
};
int AmbSndSeq8[] = { // Magic
- afxcmd_play, sfx_amb8,
+ afxcmd_play, SFX_AMB8,
afxcmd_end
};
int AmbSndSeq9[] = { // Laughter
- afxcmd_play, sfx_amb9,
+ afxcmd_play, SFX_AMB9,
afxcmd_delay, 16,
- afxcmd_playrelvol, sfx_amb9, -4,
+ afxcmd_playrelvol, SFX_AMB9, -4,
afxcmd_delay, 16,
- afxcmd_playrelvol, sfx_amb9, -4,
+ afxcmd_playrelvol, SFX_AMB9, -4,
afxcmd_delay, 16,
- afxcmd_playrelvol, sfx_amb10, -4,
+ afxcmd_playrelvol, SFX_AMB10, -4,
afxcmd_delay, 16,
- afxcmd_playrelvol, sfx_amb10, -4,
+ afxcmd_playrelvol, SFX_AMB10, -4,
afxcmd_delay, 16,
- afxcmd_playrelvol, sfx_amb10, -4,
+ afxcmd_playrelvol, SFX_AMB10, -4,
afxcmd_end
};
int AmbSndSeq10[] = { // FastFootsteps
- afxcmd_play, sfx_amb4,
+ afxcmd_play, SFX_AMB4,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb4, -3,
+ afxcmd_playrelvol, SFX_AMB4, -3,
afxcmd_delay, 8,
- afxcmd_playrelvol, sfx_amb11, -3,
+ afxcmd_playrelvol, SFX_AMB11, -3,
afxcmd_end
};
Modified: trunk/doomsday/plugins/jheretic/src/p_telept.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/p_telept.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/p_telept.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -137,7 +137,7 @@
// Spawn teleport fog at source and destination
fogDelta = thing->flags & MF_MISSILE? 0 : TELEFOGHEIGHT;
fog = P_SpawnMobj3f(MT_TFOG, oldpos[VX], oldpos[VY], oldpos[VZ] + fogDelta);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
an = angle >> ANGLETOFINESHIFT;
fog =
@@ -145,7 +145,7 @@
x + 20 * FIX2FLT(finecosine[an]),
y + 20 * FIX2FLT(finesine[an]),
thing->pos[VZ] + fogDelta);
- S_StartSound(sfx_telept, fog);
+ S_StartSound(SFX_TELEPT, fog);
}
if(thing->player && !thing->player->powers[PT_WEAPONLEVEL2])
@@ -286,12 +286,12 @@
{ // Teleporting away will undo any morph effects (pig)
P_UndoPlayerMorph(player);
}
- //S_StartSound(NULL, sfx_wpnup); // Full volume laugh
+ //S_StartSound(NULL, SFX_WPNUP); // Full volume laugh
# else
P_Teleport(player->plr->mo, destPos[VX], destPos[VY], destAngle, true);
- /*S_StartSound(sfx_wpnup, NULL); // Full volume laugh
- NetSv_Sound(NULL, sfx_wpnup, player-players); */
- S_StartSound(sfx_wpnup, NULL);
+ /*S_StartSound(SFX_WPNUP, NULL); // Full volume laugh
+ NetSv_Sound(NULL, SFX_WPNUP, player-players); */
+ S_StartSound(SFX_WPNUP, NULL);
# endif
}
#endif
Modified: trunk/doomsday/plugins/jheretic/src/st_stuff.c
===================================================================
--- trunk/doomsday/plugins/jheretic/src/st_stuff.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jheretic/src/st_stuff.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -774,7 +774,7 @@
if(tomePlay != timeleft)
{
tomePlay = timeleft;
- S_LocalSound(sfx_keyup, NULL);
+ S_LocalSound(SFX_KEYUP, NULL);
}
}
Modified: trunk/doomsday/plugins/jhexen/src/p_telept.c
===================================================================
--- trunk/doomsday/plugins/jhexen/src/p_telept.c 2008-05-31 06:00:16 UTC (rev 5685)
+++ trunk/doomsday/plugins/jhexen/src/p_telept.c 2008-05-31 09:41:58 UTC (rev 5686)
@@ -329,7 +329,7 @@
# else
P_Teleport(player->plr->mo, destPos[VX], destPos[VY], destAngle);
- S_StartSound(sfx_wpnup, NULL);
+ S_StartSound(SFX_WPNUP, NULL);
# endif
}
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|