mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 07:07:09 +00:00
34 lines
903 B
C
34 lines
903 B
C
|
#ifndef AUDIOMGR_H
|
||
|
#define AUDIOMGR_H
|
||
|
|
||
|
#include "sched.h"
|
||
|
#include "z64audio.h"
|
||
|
|
||
|
typedef enum {
|
||
|
/* 0 */ AUDIOMGR_DEBUG_LEVEL_NONE,
|
||
|
/* 1 */ AUDIOMGR_DEBUG_LEVEL_NO_RSP,
|
||
|
/* 2 */ AUDIOMGR_DEBUG_LEVEL_NO_UPDATE
|
||
|
} AudioMgrDebugLevel;
|
||
|
|
||
|
typedef struct {
|
||
|
/* 0x0000 */ IrqMgr* irqMgr;
|
||
|
/* 0x0004 */ Scheduler* sched;
|
||
|
/* 0x0008 */ OSScTask audioTask;
|
||
|
/* 0x0070 */ AudioTask* rspTask;
|
||
|
/* 0x0074 */ OSMesgQueue interruptQueue;
|
||
|
/* 0x008C */ OSMesg interruptMsgBuf[8];
|
||
|
/* 0x00AC */ OSMesgQueue taskDoneQueue;
|
||
|
/* 0x00C4 */ OSMesg taskDoneMsg;
|
||
|
/* 0x00C8 */ OSMesgQueue initQueue;
|
||
|
/* 0x00E0 */ OSMesg initMsg;
|
||
|
/* 0x00E8 */ OSThread thread;
|
||
|
} AudioMgr; // size = 0x298
|
||
|
|
||
|
void AudioMgr_Init(AudioMgr* audioMgr, void* stack, OSPri pri, OSId id, Scheduler* sched, IrqMgr* irqMgr);
|
||
|
|
||
|
void AudioMgr_WaitForInit(AudioMgr* audioMgr);
|
||
|
|
||
|
void AudioMgr_StopAllSfx(void);
|
||
|
|
||
|
#endif
|