Attempt to decompile snd0000ee88

This commit is contained in:
Ryan Dwyer
2021-11-20 15:51:40 +10:00
parent a63c8e62f7
commit 1f89c75501
3 changed files with 48 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ void snd0000eadc(void);
void sndLoadSfxCtl(void);
void snd0000ed14(void);
u32 snd0000ed68(void);
u32 snd0000ee88(void);
struct var80095210_35c *snd0000ee88(u32 segoffset, u16 arg1);
u32 snd0000efa8(void);
u32 snd0000f0d4(void);
u32 snd0000f228(void);
+7
View File
@@ -7027,10 +7027,17 @@ struct mp3vars {
/*0x61*/ u8 var8009c3f1;
};
struct var80095210_35c {
u8 unk00[6];
};
struct var80095210 {
u16 *soundnums;
u8 unk04[45];
u16 unk32[45];
u8 unk90[0x2cc];
struct var80095210_35c unk35c[1];
u8 unk364[0x3d88];
};
struct rdptask {
+40 -1
View File
@@ -46,7 +46,6 @@ ALBank *var80095204;
struct seqtable *g_SeqTable;
u32 g_SeqBufferSize;
struct var80095210 var80095210;
u8 var800952a0[0x4060];
const char g_SndGuardString[] = "RUSSES SOUND GUARD STRING";
const char var70053b3c[] = "Snd: SoundHeaderCacheInit\n";
@@ -1376,6 +1375,46 @@ glabel snd0000ee88
);
#endif
//struct var80095210_35c *snd0000ee88(u32 segoffset, u16 arg1)
//{
//#if VERSION >= VERSION_NTSC_1_0
// s32 i;
// s32 sum1;
// s32 sum2;
// u32 stack;
// u8 spaf[0x40];
// u8 sp5f[0x50];
// u32 *s2 = (u32 *)ALIGN16((u32)spaf);
// u32 *s1 = (u32 *)ALIGN16((u32)sp5f);
// u32 stack2;
//
// do {
// dmaExecHighPriority(s2, (u32)&_sfxctlSegmentRomStart + segoffset, 0x40);
// sum1 = 0;
//
// for (i = 0; i < 16U; i++) {
// sum1 += s2[i];
// }
//
// dmaExecHighPriority(s1, (u32)&_sfxctlSegmentRomStart + segoffset, 0x40);
// sum2 = 0;
//
// for (i = 0; i < 16U; i++) {
// sum2 += s1[i];
// }
// } while (sum1 != sum2);
//#else
// u8 sp5f[0x50];
// u32 *s1 = (u32 *)ALIGN16((u32)sp5f);
//
// dmaExecHighPriority(s1, (u32)&_sfxctlSegmentRomStart + segoffset, 0x40);
//#endif
//
// var80095210.unk35c[arg1] = *(struct var80095210_35c *)s1;
//
// return &var80095210.unk35c[arg1];
//}
#if VERSION >= VERSION_NTSC_1_0
GLOBAL_ASM(
glabel snd0000efa8