mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
AudioMgr cleanup (#1300)
* AudioMgr cleanup * Remove D_801D14F0 from variables.h
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef AUDIOMGR_H
|
||||
#define AUDIOMGR_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "unk.h"
|
||||
#include "irqmgr.h"
|
||||
#include "scheduler.h"
|
||||
#include "z64audio.h"
|
||||
|
||||
typedef struct {
|
||||
/* 0x000 */ IrqMgr* irqMgr;
|
||||
/* 0x004 */ SchedContext* sched;
|
||||
/* 0x008 */ OSScTask audioTask;
|
||||
/* 0x060 */ AudioTask* rspTask;
|
||||
/* 0x064 */ OSMesgQueue interruptQueue;
|
||||
/* 0x07C */ OSMesg interruptMsgBuf[30];
|
||||
/* 0x0F4 */ OSMesgQueue cmdQueue;
|
||||
/* 0x10C */ OSMesg cmdMsgBuf[1];
|
||||
/* 0x110 */ OSMesgQueue lockQueue;
|
||||
/* 0x128 */ OSMesg lockMsgBuf[1];
|
||||
/* 0x12C */ UNK_TYPE1 pad_12C[0x4];
|
||||
/* 0x130 */ OSThread thread;
|
||||
} AudioMgr; // size = 0x2E0
|
||||
|
||||
void AudioMgr_StopAllSfxExceptSystem(void);
|
||||
void AudioMgr_Unlock(AudioMgr* audioMgr);
|
||||
void AudioMgr_Init(AudioMgr* audioMgr, void* stack, OSPri pri, OSId id, SchedContext* sched, IrqMgr* irqMgr);
|
||||
|
||||
#endif
|
||||
@@ -1490,14 +1490,6 @@ void func_801720C4(PreRender* this);
|
||||
void func_801720FC(PreRenderParams* params, Gfx** gfxp);
|
||||
void Prerender_DrawBackground2D(Gfx** gfxp, void* timg, void* tlut, u16 width, u16 height, u8 fmt, u8 siz, u16 tt, u16 arg8, f32 x, f32 y, f32 xScale, f32 yScale, u32 flags);
|
||||
|
||||
void AudioMgr_StopAllSfxExceptSystem(void);
|
||||
void func_80172C30(AudioMgr* audioMgr);
|
||||
void AudioMgr_HandleRetrace(AudioMgr* audioMgr);
|
||||
void AudioMgr_HandlePRENMI(AudioMgr* audioMgr);
|
||||
void AudioMgr_ThreadEntry(void* arg);
|
||||
void AudioMgr_Unlock(AudioMgr* audioMgr);
|
||||
void AudioMgr_Init(AudioMgr* audioMgr, void* stack, OSPri pri, OSId id, SchedContext* sched, IrqMgr* irqMgr);
|
||||
|
||||
void GameAlloc_Log(GameAlloc* this);
|
||||
void* GameAlloc_Malloc(GameAlloc* this, size_t size);
|
||||
void GameAlloc_Free(GameAlloc* this, void* data);
|
||||
|
||||
@@ -658,7 +658,6 @@ extern s32 gDbgCamEnabled;
|
||||
extern Input* D_801D0D60;
|
||||
// extern UNK_TYPE2 sPlayerCsIdToCsCamId;
|
||||
// extern UNK_TYPE1 D_801D0D7A;
|
||||
// extern UNK_TYPE4 D_801D14F0;
|
||||
|
||||
extern u32 retryCount;
|
||||
extern u32 cfbIdx[3];
|
||||
|
||||
@@ -348,21 +348,6 @@ typedef struct {
|
||||
|
||||
struct PlayState;
|
||||
|
||||
typedef struct {
|
||||
/* 0x000 */ IrqMgr* irqMgr;
|
||||
/* 0x004 */ SchedContext* sched;
|
||||
/* 0x008 */ OSScTask audioTask;
|
||||
/* 0x060 */ AudioTask* rspTask;
|
||||
/* 0x064 */ OSMesgQueue interruptMsgQ;
|
||||
/* 0x07C */ OSMesg interruptMsgBuf[30];
|
||||
/* 0x0F4 */ OSMesgQueue cmdQ;
|
||||
/* 0x10C */ OSMesg cmdMsgBuf[1];
|
||||
/* 0x110 */ OSMesgQueue lockMsgQ;
|
||||
/* 0x128 */ OSMesg lockMsgBuf[1];
|
||||
/* 0x12C */ UNK_TYPE1 pad_12C[0x4];
|
||||
/* 0x130 */ OSThread thread;
|
||||
} AudioMgr; // size = 0x2E0
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ u8 seqId;
|
||||
/* 0x1 */ u8 ambienceId;
|
||||
|
||||
Reference in New Issue
Block a user