refac: rename func_8030D90C to sfxsource_createSfxsourceAndReturnIndex and func_8030DBB4 to sfxsource_playSfxAtVolume

Additionally rename properties/variables assigned by sfxsource_createSfxsourceAndReturnIndex to sfxsourceIdx
This commit is contained in:
Bl00D4NGEL
2024-09-22 03:10:19 +02:00
parent fbe20325c2
commit 9bd6988f99
55 changed files with 297 additions and 297 deletions

View File

@@ -384,9 +384,9 @@ Actor * func_803055E0(enum actor_e id, s32 pos[3], s32 arg2, s32 arg3, s32 arg4)
Actor * spawn_actor(enum actor_e id, s32 pos[3], s32 yaw);
f32 mapModel_getFloorY(f32[3]);
BKModelBin *func_8030A428(s32);
u8 func_8030D90C(void);
u8 sfxsource_createSfxsourceAndReturnIndex(void);
void sfxsource_setSfxId(u8 indx, enum sfx_e uid);
void func_8030DBB4(u8, f32);
void sfxsource_playSfxAtVolume(u8, f32);
void func_8030DD14(u8, int);
void sfxsource_set_position(u8, f32[3]);
void func_8030DFF0(u8, s32);

View File

@@ -175,7 +175,7 @@ typedef struct actor_s{
u32 unk38_0:1;
u32 unk3C;
s32 unk40;
u32 unk44_31:8;
u32 unk44_31:8; // sfxsource idx
u32 modelCacheIndex:10; //modelCacheIndex
s32 unk44_14:10;
u32 despawn_flag:1;

View File

@@ -446,7 +446,7 @@ typedef struct struct_4D_s{
}struct4Ds;
typedef struct{
u8 unk0;
u8 unk0; // sfxsource index
u8 pad1[0x3];
f32 unk4;
f32 unk8;
@@ -587,7 +587,7 @@ typedef struct struct_65_s{
typedef void (*Struct68DrawMethod)(void *, struct struct_68_s *, f32[3], f32[3], f32, BKModelBin*, Gfx**, Mtx**, Vtx**);
typedef struct struct_68_s{
u8 unk0;
u8 unk0; // sfxsource index
// u8 pad1[0x3];
struct actorMarker_s *unk4;
Struct68DrawMethod unk8;
@@ -619,7 +619,7 @@ typedef struct{
} Struct6Cs;
typedef struct struct_6D_s{
u8 unk0;
u8 unk0; //sfxsource index
// u8 pad1[3];
f32 unk4;
f32 unk8;