Skip to content

Commit 820a248

Browse files
authored
More sfxIDs (Xeeynamo#2733)
I noticed that some files have SFXs but don't have the include for sfx.h. Is that still needed?
1 parent 6c2ece7 commit 820a248

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

include/sfx.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ enum {
323323
// BOSS RBO3 - Medusa
324324
#define SFX_RBO3_UNK_7C5 0x7C5
325325
#define SFX_RBO3_UNK_7C8 0x7C8
326-
#define SFX_RBO3_UNK_7D1 0x7D1
327326
#define SFX_RBO3_UNK_7FB 0x7FB
328327
#define SFX_RBO3_UNK_7FD 0x7FD
329328
#define SFX_RBO3_UNK_7FE 0x7FE
@@ -332,10 +331,6 @@ enum {
332331
#define SFX_RBO3_UNK_802 0x802
333332
#define SFX_RBO3_UNK_804 0x804
334333

335-
// SHARED SOUNDS
336-
// These are sounds that are shared across multiple BIN files
337-
#define SE_BOSS_DEFEATED 0x7D2
338-
339334
// UNUSED SOUNDS
340335
#define NA_VO_MAR_AIM_HEAD 0x87F
341336

@@ -409,7 +404,7 @@ enum Sfx {
409404
/* 0x62D */ SFX_WEAPON_STAB_A,
410405
/* 0x62E */ SFX_WEAPON_STAB_B, // Common stab sfx
411406
/* 0x62F */ SFX_WEAPON_APPEAR, // Item Crash, Neutron Bomb
412-
/* 0x630 */ SFX_UNK_BETA_630, // 0x630 (MAD, TE1, TE2, TE3, TE4, TE5)
407+
/* 0x630 */ SFX_UNK_BETA_630, // (MAD, TE1, TE2, TE3, TE4, TE5)
413408
/* 0x631 */ SFX_DEATH_AMBIENCE, // BGM ambience during first Death cutscene
414409
/* 0x632 */ SFX_MAGIC_GLASS_BREAK, // Subweapon Container
415410
/* 0x633 */ SFX_UI_CONFIRM,
@@ -648,23 +643,28 @@ enum Sfx {
648643
SFX_SALEM_WITCH_ATTACK = 0x736,
649644
SFX_SALEM_WITCH_HURT,
650645
SFX_SALEM_WITCH_DEATH,
646+
SFX_GHOST_ENEMY_HOWL = 0x739,
651647
SFX_BLOODY_ZOMBIE_HIT_GRUNT = 0x746,
652648
SFX_BLOODY_ZOMBIE_DEATH,
653649
SFX_BLOODY_ZOMBIE_HIT,
654650
SFX_BLOODY_ZOMBIE_SPLATTER,
651+
SFX_CTULHU_LAUGH = 0x758,
652+
SFX_CTULHU_ROAR,
653+
SFX_UNK_761 = 0x761,
655654
SFX_SPEAR_GUARD_DEATH = 0x771,
656655
SFX_WARG_DEATH_HOWL = 0x780, // also used for Scylla Worm (phase 2)
657656
SFX_WARG_PAIN,
658657
SFX_WARG_ATTACK,
659658
SFX_WARG_GROWL,
660-
SFX_GHOST_ENEMY_HOWL = 1849,
661-
SFX_CTULHU_LAUGH = 1880,
662-
SFX_UNK_797 = 1943,
663-
SFX_CLOCK_BELL = 1958,
664-
SFX_CLOCK_ROOM_TICK = 1961,
659+
SFX_UNK_797 = 0x797,
660+
SFX_CLOCK_BELL = 0x7A6,
661+
SFX_CLOCK_ROOM_TICK = 0x7A9,
662+
SFX_TELESCOPE_SHUTTER_CLICK = 0x7AC,
663+
SFX_ALU_ZZZ_SNORE,
665664
SFX_UNK_7AF = 0x7Af,
666665
SFX_UNK_7BE = 0x7BE,
667-
SFX_UNK_761 = 0x761,
666+
SFX_SCIFI_BLAST = 0x7D1,
667+
SFX_BOSS_DEFEATED,
668668

669669
// Exclusive to Maria PSP
670670
/* 0x8E6 */ SFX_VO_MAR_8E6 = 0x8E6,

src/boss/rbo3/rbo3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void EntityMedusa(Entity* self) {
284284
SetStep(3);
285285
}
286286
if (self->pose == 3 && self->poseTimer == 0) {
287-
PlaySfxPositional(SFX_RBO3_UNK_7D1);
287+
PlaySfxPositional(SFX_SCIFI_BLAST);
288288
for (i = 0; i < 2; i++) {
289289
entity = AllocEntity(&g_Entities[0xA0], &g_Entities[0xC0]);
290290
if (entity != NULL) {

src/dra/71830.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
#include "dra.h"
33
#include "dra_bss.h"
4+
#include "sfx.h"
45

56
// Forward declaration. EntityAlucard needs to not know these args are s16.
67
// But 80113D7C (in this file, but before PlayerStepKill) needs to know
@@ -339,7 +340,7 @@ void PlayerStepStand(void) {
339340
case Player_Stand_ChairSit:
340341
if (PLAYER.ext.player.anim == 0xF2 && --g_AlucardChairSleepTimer == 0) {
341342
if (g_StageId == STAGE_NO1) {
342-
PlaySfx(0x7AD);
343+
PlaySfx(SFX_ALU_ZZZ_SNORE);
343344
}
344345
CreateEntFactoryFromEntity(
345346
g_CurrentEntity, FACTORY(BP_SLEEP_ZZZ, 0), 0);

src/st/e_life_up.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void EntityLifeUpSpawn(Entity* self) {
9696
}
9797
}
9898
}
99-
g_api.PlaySfx(SE_BOSS_DEFEATED);
99+
g_api.PlaySfx(SFX_BOSS_DEFEATED);
100100
break;
101101
case 1:
102102
if (!self->ext.lifeUpSpawn.unk86) {

src/st/lib/e_lesser_demon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ void EntityLesserDemon(Entity* self) {
13561356
break;
13571357
}
13581358
if (self->pose == 3 && self->poseTimer == 0) {
1359-
PlaySfxPositional(0x7D1);
1359+
PlaySfxPositional(SFX_SCIFI_BLAST);
13601360
self->ext.lesserDemon.unk84 = 2;
13611361
tempEntity = AllocEntity(&g_Entities[160], &g_Entities[192]);
13621362
if (tempEntity != NULL) {

src/st/no0/e_ctulhu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ void EntityCtulhu(Entity* self) {
356356
break;
357357
case 2:
358358
if (!(g_Timer & 0xF)) {
359-
PlaySfxPositional(0x759);
359+
PlaySfxPositional(SFX_CTULHU_ROAR);
360360
}
361361
AnimateEntity(anim_laugh_static, self);
362362
// If player is revived, return back to standard action

src/st/no1/unk_381E8.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
#include "no1.h"
3+
#include "sfx.h"
34

45
// Likely copied out of DRA. This code
56
// appears to go unused.
@@ -1312,7 +1313,7 @@ void func_us_801BA290(Entity* self) {
13121313
LOW(prim->r2) = LOW(prim->r0);
13131314
LOW(prim->r3) = LOW(prim->r0);
13141315
if (prim->r0 == 0x30) {
1315-
g_api.PlaySfx(0x7AC);
1316+
g_api.PlaySfx(SFX_TELESCOPE_SHUTTER_CLICK);
13161317
self->step_s = 2;
13171318
}
13181319
prim = prim->next;
@@ -1365,7 +1366,7 @@ void func_us_801BA290(Entity* self) {
13651366

13661367
case 4:
13671368
if (!--self->ext.et_801BA290.unk82) {
1368-
g_api.PlaySfx(0x7AC);
1369+
g_api.PlaySfx(SFX_TELESCOPE_SHUTTER_CLICK);
13691370
self->step_s = 0;
13701371
self->step++;
13711372
}

0 commit comments

Comments
 (0)