documented most audio stuff

This commit is contained in:
Henny022p
2021-03-24 01:58:52 +01:00
parent 58b4df70b5
commit 5af4805e59
45 changed files with 223 additions and 507 deletions
+30 -12
View File
@@ -556,25 +556,43 @@ typedef enum {
SFX_221,
// special functions
SONG_STOP_ALL = 0x80010000,
SONG_VOL_ZERO = 0x80020000,
SONG_VOL_RESET_ALL = 0x80030000,
SONG_MUTE = 0x80020000,
SONG_PLAY_VOL_RESET_ALL = 0x80030000,
SONG_VSYNC_OFF = 0x80040000,
SONG_STOP = 0x80050000,
SONG_VSYNC_ON = 0x80060000,
SONG_UNK_7 = 0x80070000,
SONG_CONTINUE = 0x80070000,
SONG_VOL_FADE_OUT = 0x80080000,
SONG_UNK_9 = 0x80090000,
SONG_UNK_A = 0x800A0000,
SONG_VOL_RESET = 0x800B0000,
SONG_UNK_C = 0x800C0000,
SONG_VOL_CHAN1_SILENT = 0x800D0000,
SONG_VOL_CHAN1_RESET = 0x800E0000,
SONG_UNK_F = 0x800F0000,
SONG_RESET_UNK = 0x80100000,
SONG_UNK_11 = 0x80110000,
SONG_FADE_IN = 0x80090000,
SONG_FADE_IN_CONTINUE = 0x800A0000,
SONG_PLAY_VOL_RESET = 0x800B0000,
SONG_PLAY_TEMPO_CONTROL = 0x800C0000,
SONG_FADE_OUT_BGM = 0x800D0000,
SONG_FADE_IN_BGM = 0x800E0000,
SONG_INIT = 0x800F0000,
SONG_STOP_BGM = 0x80100000,
SONG_BGM_0 = 0x80110000,
} Sound;
typedef struct SoundPlayingInfo {
u16 unk_00;
bool8 stopBgm;
// u8 unk_03;
u16 unk_04;
s16 volumeMasterUnk;
s16 volumeMaster;
s16 volumeMasterTarget;
s16 volumeBgmUnk;
s16 volumeBgm;
s16 volumeBgmTarget;
s16 volumeSfx;
u16 currentBgm;
} SoundPlayingInfo;
extern SoundPlayingInfo gSoundPlayingInfo;
void InitSound(void);
void SoundReq(Sound sound);
void SoundLoop(void);
#endif // AUDIO_H
+1 -1
View File
@@ -142,7 +142,7 @@ extern void sub_080AF2E4(void);
extern void sub_0804F578(void);
extern void sub_08059994(void);
extern s32 sub_0801CFA8(u32);
extern void sub_080A3210(void);
extern void InitSoundPlayingInfo(void);
extern void sub_080ADA14(u32, u32); // trampoline to sub_080B27F4
extern void sub_0801E1B8(u32, u32);
extern void sub_0801E1EC(s32, s32, s32);
-1
View File
@@ -88,7 +88,6 @@ extern void sub_08056260(void);
extern void VBlankIntrWait();
extern void MessageUpdate(void);
extern void sub_08050154(void);
extern void sub_080A3480(void);
extern u8 gUnk_03003DE4;
-17
View File
@@ -182,23 +182,6 @@ typedef struct {
extern EntityHandler gUnk_03003DC0;
typedef struct struct_02021EE0 {
u16 unk_00;
u8 unk_02;
u8 unk_03;
u16 unk_04;
s16 unk_06;
s16 unk_08;
s16 unk_0a;
s16 unk_0c;
s16 unk_0e;
s16 unk_10;
s16 unk_12;
u16 currentBgm;
} struct_02021EE0;
extern struct_02021EE0 gUnk_02021EE0;
extern u8 gUnk_02022740[];
extern u8 gUnk_02034490[];