From d3a8ade6bae030b587cfbe7aa2d76117d1e54a02 Mon Sep 17 00:00:00 2001 From: engineer124 <47598039+engineer124@users.noreply.github.com> Date: Wed, 12 Jan 2022 12:58:26 +1100 Subject: Migrate Remaining Audio Data & Cleanup some Audio Data externs (#1097) * Import code_800F7260.bss.s * Import code_800F9280.data.s * format * cleanup externs * Move bss to next file * Move struct_8016E320 (BgmRequests) back to file * Move data to init_params, remove data pad (can't remove bss pad), ReverbSettings * remove extra spacing * Remove data/bss comments --- src/code/code_800F9280.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'src/code/code_800F9280.c') diff --git a/src/code/code_800F9280.c b/src/code/code_800F9280.c index 381cdf611..075d609aa 100644 --- a/src/code/code_800F9280.c +++ b/src/code/code_800F9280.c @@ -2,9 +2,23 @@ #include "global.h" #include "ultra64/abi.h" -extern u8 sSeqCmdRdPos; -extern u8 sSeqCmdWrPos; -extern u8 D_80133410[]; +typedef struct { + u8 unk_0; + u8 unk_1; // importance? +} Struct_8016E320; + +Struct_8016E320 D_8016E320[4][5]; +u8 D_8016E348[4]; +u32 sAudioSeqCmds[0x100]; +unk_D_8016E750 D_8016E750[4]; + +u8 sSeqCmdWrPos = 0; +u8 sSeqCmdRdPos = 0; +u8 D_80133408 = 0; +u8 D_8013340C = 1; +u8 D_80133410[] = { 0, 1, 2, 3 }; +u8 gAudioSpecId = 0; +u8 D_80133418 = 0; // TODO: clean up these macros. They are similar to ones in code_800EC960.c but without casts. #define Audio_StartSeq(playerIdx, fadeTimer, seqId) \ @@ -81,12 +95,6 @@ typedef enum { CMDF } SeqCmdType; -typedef struct { - u8 unk_0; - u8 unk_1; // importance? -} Struct_8016E320; -extern Struct_8016E320 D_8016E320[][5]; // sorted by unk_1, descending - void Audio_ProcessSeqCmd(u32 cmd) { s32 pad[2]; u16 fadeTimer; -- cgit v1.2.3