Decompile sndInit

This commit is contained in:
Ryan Dwyer
2021-03-27 02:16:14 +10:00
parent 5f0a2f2e29
commit ced6be2cd6
20 changed files with 322 additions and 659 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ typedef struct {
void *dmaproc;
ALHeap *heap;
s32 outputRate; /* output sample rate */
ALFxId fxType;
ALFxId fxTypes[4];
s32 *params;
} ALSynConfig;
+1 -1
View File
@@ -37,7 +37,7 @@ extern u32 var80092828;
extern u32 var80092870;
extern s32 var80094ea8;
extern struct var80094ed8 var80094ed8[3];
extern u32 var800951f0[4];
extern ALHeap g_SndHeap;
extern u32 var80095200;
extern u8 var80095210[0x40f0];
extern OSMesgQueue var80099e78;
+1 -1
View File
@@ -42,7 +42,7 @@ extern s32 var8005dd18;
extern u32 var8005dd58;
extern bool g_Silent;
extern u16 g_SfxVolume;
extern u32 g_SoundMode;
extern s32 g_SoundMode;
extern s32 var8005ddd4;
extern struct audiorussmapping g_AudioRussMappings[];
extern struct audioconfig g_AudioConfigs[];
+7 -1
View File
@@ -5,7 +5,13 @@
#include "types.h"
void amgrAllocateStack(void);
u32 amgrCreate(void);
#if VERSION >= VERSION_PAL_FINAL
void amgrCreate(ALSynConfig *config, u32 *arg1);
#else
void amgrCreate(ALSynConfig *config);
#endif
void amgrStartThread(void);
OSMesgQueue *amgr00009118(void);
void amgrStopThread(void);
-3
View File
@@ -4,7 +4,4 @@
#include "data.h"
#include "types.h"
u32 func0002faf0(void);
u32 func0002fb14(void);
#endif
+3 -3
View File
@@ -4,15 +4,15 @@
#include "data.h"
#include "types.h"
u32 func000317f0(void);
void func000317f0(void *arg0);
u32 func00031b34(void);
u32 func00033090(void);
u32 func00033100(void);
u32 func00033180(void);
u32 func00033274(void);
u32 func00033378(void);
void func00033378(void *fn);
u32 func00033390(void);
u32 func00033634(void);
void func00033634(void *fn);
u32 func0003364c(void);
u32 audioIsPlaying(struct audiohandle *handle);
u32 func00033820(void);
+1 -1
View File
@@ -5,7 +5,7 @@
#include "types.h"
u32 func00037650(void);
u32 func00037704(void);
void func00037704(void *arg0, void *arg1);
u32 func000377e8(void);
u32 func00037900(void);
u32 func000379c4(void);
+3 -3
View File
@@ -4,14 +4,14 @@
#include "data.h"
#include "types.h"
u32 func00037b00(void);
void func00037b00(ALHeap *heap);
u32 func00037d88(void);
u32 func00037e1c(void);
u32 func00037e38(void);
u32 func00037e68(void);
u32 func00037ea4(void);
u32 func00037f08(void);
u32 func00037f5c(void);
void func00037f08(u16 arg0, s32 arg1);
void func00037f5c(s32 arg0, s32 arg1);
u32 func00037fc0(void);
u32 func00038924(void);
u32 func00038b90(void);
+3 -3
View File
@@ -10,7 +10,7 @@ u16 snd0000e9dc(void);
void sndSetSfxVolume(u16 volume);
u32 snd0000ea80(void);
void snd0000eadc(void);
u32 snd0000eb2c(void);
void snd0000eb2c(void);
u32 snd0000ed14(void);
u32 snd0000ed68(void);
u32 snd0000ee88(void);
@@ -19,8 +19,8 @@ u32 snd0000f0d4(void);
u32 snd0000f228(void);
void sndSetSoundMode(s32 mode);
u32 snd0000f49c(void);
u32 snd0000f67c(void);
u32 snd0000f804(void);
void snd0000f67c(struct var80094ed8 *arg0);
void sndInit(void);
bool snd0000fba0(s32 soundnum);
void snd0000fbc4(s16 arg0);
u32 snd0000fc48(void);
+11
View File
@@ -7128,4 +7128,15 @@ struct handweaponinfo {
struct gunctrl *gunctrl;
};
struct seqtableentry {
u8 *data;
u16 binlen;
u16 ziplen;
};
struct seqtable {
u16 count;
struct seqtableentry entries[1];
};
#endif