mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
match and document audio_spatial.c (#555)
* match func_80004668 and adjust types * match _handleEvent * documentation WIP * wip * document audiosfx.c * fix build * a few type renames * update score * remove comment * fix type * wip * match func_80008438 * update score * documentation almost done * documented audio_spatial.c * update score * format and update score * remove duplicated lines * PR suggestions
This commit is contained in:
+6
-23
@@ -100,23 +100,6 @@ typedef struct Vec2i {
|
||||
};
|
||||
} Vec2i;
|
||||
|
||||
/* Size: 0x24 / 36 bytes */
|
||||
typedef struct SoundMask {
|
||||
/* 0x00 */ Vec3f pos;
|
||||
/* 0x0C */ u16 soundId;
|
||||
/* 0x0E */ u8 volume;
|
||||
/* 0x0F */ u8 pitch;
|
||||
/* 0x10 */ u8 unk10;
|
||||
/* 0x11 */ u8 unk11;
|
||||
/* 0x12 */ u8 unk12;
|
||||
/* 0x14 */ s32 distance;
|
||||
/* 0x18 */ SoundHandle soundPtr;
|
||||
/* 0x1C */ struct SoundMask **soundMask;
|
||||
/* 0x20 */ u8 unk20;
|
||||
/* 0x21 */ u8 unk21;
|
||||
/* 0x22 */ u8 unk22;
|
||||
} SoundMask;
|
||||
|
||||
/* Size: 0x20 bytes */
|
||||
typedef struct TextureHeader {
|
||||
/* 0x00 */ u8 width;
|
||||
@@ -1231,7 +1214,7 @@ typedef struct Object_Racer {
|
||||
/* 0x018 */ SoundHandle unk18;
|
||||
/* 0x01C */ SoundHandle unk1C;
|
||||
/* 0x020 */ SoundHandle unk20;
|
||||
/* 0x024 */ SoundMask *soundMask;
|
||||
/* 0x024 */ struct AudioPoint *soundMask;
|
||||
/* 0x028 */ u16 lastSoundID;
|
||||
/* 0x02A */ u16 unk2A;
|
||||
/* 0x02C */ f32 velocity;
|
||||
@@ -1314,8 +1297,8 @@ typedef struct Object_Racer {
|
||||
/* 0x175 */ s8 magnetTimer;
|
||||
/* 0x176 */ s16 unk176;
|
||||
/* 0x178 */ SoundHandle magnetSoundMask;
|
||||
/* 0x17C */ SoundMask *shieldSoundMask;
|
||||
/* 0x180 */ SoundMask *bananaSoundMask;
|
||||
/* 0x17C */ struct AudioPoint *shieldSoundMask;
|
||||
/* 0x180 */ struct AudioPoint *bananaSoundMask;
|
||||
/* 0x184 */ s8 magnetModelID;
|
||||
/* 0x185 */ s8 bananas;
|
||||
/* 0x186 */ u8 unk186;
|
||||
@@ -1435,7 +1418,7 @@ typedef struct Object_Racer {
|
||||
|
||||
typedef struct Object_Door {
|
||||
/* 0x00 */ f32 homeY;
|
||||
/* 0x04 */ SoundHandle soundMask;
|
||||
/* 0x04 */ struct AudioPoint* soundMask;
|
||||
/* 0x08 */ s32 jingleTimer;
|
||||
/* 0x0A */ s16 jingleCooldown;
|
||||
/* 0x0E */ s8 doorID;
|
||||
@@ -1467,7 +1450,7 @@ typedef struct Object_Audio {
|
||||
/* 0x05 */ u8 unk5;
|
||||
/* 0x06 */ u8 unk6;
|
||||
/* 0x07 */ u8 unk7;
|
||||
/* 0x08 */ SoundMask *soundMask;
|
||||
/* 0x08 */ struct AudioPoint *soundMask;
|
||||
/* 0x0C */ u8 unkC;
|
||||
/* 0x0D */ u8 unkD;
|
||||
} Object_Audio;
|
||||
@@ -1552,7 +1535,7 @@ typedef struct Object_TT {
|
||||
|
||||
typedef struct Object_Bridge_WhaleRamp {
|
||||
/* 0x0 */ f32 homeY;
|
||||
/* 0x4 */ SoundHandle soundMask;
|
||||
/* 0x4 */ struct AudioPoint *soundMask;
|
||||
} Object_Bridge_WhaleRamp;
|
||||
|
||||
typedef struct Object_64_80021400 {
|
||||
|
||||
Reference in New Issue
Block a user