Decompile func0003f8a0

This commit is contained in:
Ryan Dwyer 2021-11-18 20:42:40 +10:00
parent 22270ea046
commit e8770da22b
7 changed files with 256 additions and 681 deletions

View File

@ -47,11 +47,10 @@ extern struct var8009c340 var8009c340;
extern u8 var8009c344[2];
extern u32 var8009c3e0;
extern struct asistream *g_AsiStream;
extern u8 *var8009c640;
extern u8 *var8009c644;
extern u32 var8009c650[34];
extern u8 *var8009c6d8;
extern u8 *var8009c6dc;
extern struct mp3decfourbytes *var8009c640;
extern f32 *var8009c644;
extern f32 *var8009c6d8;
extern f32 *var8009c6dc;
extern OSTimer var8009c760;
extern OSTime __osCurrentTime;
extern u32 __osBaseCounter;

View File

@ -78,7 +78,6 @@ extern u32 var8005f4dc;
extern u32 var8005f548;
extern s16 n_eqpower[];
extern u32 var8005f66c;
extern u32 var8005f670;
extern u8 *var8005f6f8;
extern u8 *var8005f6fc;
extern u32 var8005f704;

View File

@ -38,7 +38,7 @@ extern const u32 var70056ec0[];
extern const u32 var700576c8[];
extern const u32 var70057750[];
u32 func0003f8a0(void);
bool func0003f8a0(void);
void func00040164(struct asistream *stream, u32 gr, u32 ch);
bool mp3decUnpackScaleFac(struct asistream *stream, u32 gr, u32 ch);
void func00041600(struct asistream *stream, u32 gr, u32 ch);

View File

@ -7430,4 +7430,18 @@ struct asistream {
/*0x847c*/ bool (*unk847c)(struct asistream *stream);
};
struct mp3decfourbytes {
u8 bytes[2];
s8 unk02;
s8 unk03;
};
struct mp3decthing {
u8 unk00;
u8 unk01;
u8 unk02;
u8 unk03;
u32 unk04;
};
#endif

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
#include <ultra64.h>
#include "constants.h"
#include "bss.h"
#include "lib/lib_3e8c0.h"
#include "lib/lib_43dd0.h"
#include "lib/lib_461c0.h"
@ -15,10 +14,11 @@
#define CRC_UNPROTECTED 1
extern struct mp3vars g_Mp3Vars;
extern struct asistream *g_AsiStream;
u32 var8009c650[34];
u8 *var8009c6d8;
u8 *var8009c6dc;
struct mp3decfourbytes var8009c650[34];
f32 *var8009c6d8;
f32 *var8009c6dc;
u32 var8005f700 = 0;
u32 var8005f704 = 0;

View File

@ -42,10 +42,10 @@ void mp3Init(ALHeap *heap)
var8005f6f8 = alHeapAlloc(heap, 1, 0x2200);
var8005f6fc = alHeapAlloc(heap, 1, 0x2200);
var8009c6d8 = alHeapAlloc(heap, 0x400, 1);
var8009c6dc = alHeapAlloc(heap, 0x400, 1);
var8009c640 = alHeapAlloc(heap, 0xa410, 1);
var8009c644 = alHeapAlloc(heap, 0x8000, 1);
var8009c6d8 = alHeapAlloc(heap, 256 * sizeof(f32), 1);
var8009c6dc = alHeapAlloc(heap, 256 * sizeof(f32), 1);
var8009c640 = alHeapAlloc(heap, 10500 * sizeof(struct mp3decfourbytes), 1);
var8009c644 = alHeapAlloc(heap, 8192 * sizeof(f32), 1);
func00044404();