mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-15 12:38:56 -04:00
Move mp3 code into its own folder
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
bool func0003f8a0(void);
|
||||
bool func00040164(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool mp3decInit(void);
|
||||
bool mp3dec00040164(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool mp3decUnpackScaleFac(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool func00041600(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool func00042238(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool func000427d8(struct asistream *stream, u32 gr);
|
||||
bool mp3dec00041600(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool mp3dec00042238(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool mp3dec000427d8(struct asistream *stream, u32 gr);
|
||||
bool mp3decReduceAliases(struct asistream *stream, u32 gr, u32 ch);
|
||||
bool mp3decSetSideInfo(struct asistream *stream);
|
||||
bool mp3decDecodeFrame(struct asistream *stream);
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_43DD0_H
|
||||
#define _IN_LIB_LIB_43DD0_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
s32 func00043dd0(struct asistream *stream);
|
||||
bool func00043ef8(struct asistream *stream, s32 arg1);
|
||||
u32 func00044404(void);
|
||||
struct asistream *func00044460(s32 arg0, void *arg1, s32 arg2);
|
||||
s32 func0004453c(struct asistream *stream, struct mp3thing **arg1, s32 *arg2);
|
||||
|
||||
#endif
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_45ED0_H
|
||||
#define _IN_LIB_LIB_45ED0_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
f32 func00045ed0(f32 arg0, f32 arg1);
|
||||
|
||||
#endif
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_461C0_H
|
||||
#define _IN_LIB_LIB_461C0_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u32 func000461c0(void);
|
||||
u32 func00046290(void);
|
||||
s32 mp3decGetBits(u8 *buffer, s32 *count, s32 numbits);
|
||||
s32 func000462f8(u8 *arg0, s32 *arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s16 **arg6, u8 **arg7);
|
||||
s32 func000464a8(u8 *arg0, s32 *arg1, s32 arg2, s32 arg3, s32 arg4, s16 **arg5, u8 **arg6);
|
||||
|
||||
#endif
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_46650_H
|
||||
#define _IN_LIB_LIB_46650_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
void func00046650(struct asistream_4f64 *arg0, s32 arg1, struct asistream_4f64 *arg2, struct asistream_4f64 *arg3, void *arg4);
|
||||
|
||||
#endif
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_47550_H
|
||||
#define _IN_LIB_LIB_47550_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
void func00047550(struct asistream_4f64 *arg0, s32 arg1, struct asistream_4f64 *arg2, struct asistream_4f64 *arg3);
|
||||
|
||||
#endif
|
||||
@@ -1,10 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_47D20_H
|
||||
#define _IN_LIB_LIB_47D20_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
f32 func00047d20(f32 arg0);
|
||||
f32 func00047ef0(f32 arg0);
|
||||
|
||||
#endif
|
||||
@@ -7344,105 +7344,4 @@ struct var8007f8dc {
|
||||
/*0x100*/ u32 unk100;
|
||||
};
|
||||
|
||||
struct asistream_scalefac {
|
||||
/*0x3d08*/ u32 l[22];
|
||||
/*0x3d60*/ u32 unk3d60;
|
||||
/*0x3d64*/ u32 s[3][13];
|
||||
};
|
||||
|
||||
struct asistream_4f64 {
|
||||
f32 unk00[18];
|
||||
};
|
||||
|
||||
struct asistream {
|
||||
/*0x0000*/ s32 unk00;
|
||||
/*0x0004*/ s32 (*unk04)(s32 arg0, void *arg1, s32 arg2, s32 arg3);
|
||||
/*0x0008*/ s32 unk08;
|
||||
/*0x000c*/ s32 unk0c;
|
||||
/*0x0010*/ s32 unk10;
|
||||
/*0x0014*/ s32 unk14;
|
||||
/*0x0018*/ s32 unk18;
|
||||
/*0x2000*/ u8 unk1c[0x2000];
|
||||
/*0x201c*/ s32 unk201c;
|
||||
/*0x2020*/ s32 unk2020;
|
||||
/*0x2024*/ u8 buffer[0x40];
|
||||
/*0x2064*/ s32 count;
|
||||
/*0x2068*/ u32 unk2068;
|
||||
/*0x206c*/ u32 unk206c;
|
||||
/*0x2070*/ struct mp3thing unk2070[6];
|
||||
/*0x3ba0*/ s32 unk3ba0;
|
||||
/*0x3ba4*/ u32 version;
|
||||
/*0x3ba8*/ u32 layer;
|
||||
/*0x3bac*/ u32 crctype;
|
||||
/*0x3bb0*/ u32 bitrateindex;
|
||||
/*0x3bb4*/ u32 samplerateindex;
|
||||
/*0x3bb8*/ u32 haspadding;
|
||||
/*0x3bbc*/ u32 privatebit;
|
||||
/*0x3bc0*/ u32 channelmode;
|
||||
/*0x3bc4*/ u32 unk3bc4;
|
||||
/*0x3bc8*/ u32 unk3bc8;
|
||||
/*0x3bcc*/ u32 unk3bcc;
|
||||
/*0x3bd0*/ u32 unk3bd0;
|
||||
/*0x3bd4*/ bool doneinitial;
|
||||
/*0x3bd8*/ u32 initialversion;
|
||||
/*0x3bdc*/ u32 initiallayer;
|
||||
/*0x3be0*/ u32 initialcrctype;
|
||||
/*0x3be4*/ u32 initialsamplerateindex;
|
||||
/*0x3be8*/ u32 initialchannelmode;
|
||||
/*0x3bec*/ u32 unk3bec;
|
||||
/*0x3bf0*/ u32 unk3bf0;
|
||||
/*0x3bf4*/ u32 main_data_begin;
|
||||
/*0x3bf8*/ u32 scfsi[1][32];
|
||||
/*0x3c78*/ u32 part2_3_length[2][1];
|
||||
/*0x3c80*/ u32 big_value[2][1];
|
||||
/*0x3c88*/ s32 global_gain[2][1];
|
||||
/*0x3c90*/ u32 scalefac_compress[2][1];
|
||||
/*0x3c98*/ u32 window_switching[2][1];
|
||||
/*0x3ca0*/ u32 block_type[2][1];
|
||||
/*0x3ca8*/ u32 mixed_block_flag[2][1];
|
||||
/*0x3cb0*/ u32 table_select[2][1][3];
|
||||
/*0x3cc8*/ u32 subblock_gain[2][1][3];
|
||||
/*0x3ce0*/ u32 region0_count[2][1];
|
||||
/*0x3ce8*/ u32 region1_count[2][1];
|
||||
/*0x3cf0*/ u32 preflag[2][1];
|
||||
/*0x3cf8*/ u32 scalefac_scale[2][1];
|
||||
/*0x3d00*/ u32 count1table_select[2][1];
|
||||
struct asistream_scalefac scalefac[2][1];
|
||||
/*0x3ef8*/ u32 unk3ef8;
|
||||
/*0x3efc*/ u32 unk3efc[6];
|
||||
/*0x3f14*/ u32 unk3f14[26];
|
||||
/*0x3f7c*/ s32 unk3f7c;
|
||||
/*0x3f80*/ s32 unk3f80;
|
||||
/*0x3f84*/ s32 unk3f84;
|
||||
/*0x3f88*/ s32 unk3f88;
|
||||
/*0x3f8c*/ s32 numchannels;
|
||||
/*0x3f90*/ s32 numgranules;
|
||||
/*0x3f94*/ s16 unk3f94[1][578];
|
||||
/*0x4418*/ u8 unk4418[1][578];
|
||||
/*0x465c*/ s32 unk465c[1];
|
||||
/*0x4660*/ s32 unk4660[1];
|
||||
/*0x4664*/ struct asistream_4f64 unk4664[1][32];
|
||||
/*0x4f64*/ struct asistream_4f64 unk4f64[2][32];
|
||||
/*0x6164*/ u8 unk6164[0x900];
|
||||
/*0x6a64*/ struct asistream_4f64 unk6a64[2][32];
|
||||
/*0x7c64*/ u8 unk7c64[0x810];
|
||||
/*0x8474*/ s32 unk8474;
|
||||
/*0x8478*/ bool (*unk8478)(struct asistream *stream);
|
||||
/*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
|
||||
|
||||
Reference in New Issue
Block a user