Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions | Variables
load.h File Reference
#include "internal.h"

Go to the source code of this file.

Macros

#define AUDIO_FRAME_DMA_QUEUE_SIZE   0x40
 
#define PRELOAD_BANKS   2
 
#define PRELOAD_SEQUENCE   1
 
#define IS_SEQUENCE_CHANNEL_VALID(ptr)   ((u32)(ptr) != (u32)&gSequenceChannelNone)
 

Functions

void audio_dma_partial_copy_async (u32 *devAddr, u8 **vAddr, s32 *remaining, OSMesgQueue *queue, OSIoMesg *mesg)
 Performs a partial asynchronous (normal priority) DMA copy. More...
 
void decrease_sample_dma_ttls (void)
 
void * dma_sample_data (u8 *arg0, u32 arg1, s32 arg2, u8 *arg3)
 
void func_8031758C (s32 arg0)
 
void func_8031784C (struct AudioBank *arg0, u8 *offset, u32 arg2, u32 arg3)
 
void preload_sequence (u32 seqId, u8 preloadMask)
 
void load_sequence (u32 player, u32 seqId, s32 loadAsync)
 

Variables

struct Note * gNotes
 
struct SequencePlayer gSequencePlayers [SEQUENCE_PLAYERS]
 
struct SequenceChannel gSequenceChannels [32]
 
struct SequenceChannelLayer D_802245D8 [52]
 
struct SequenceChannel gSequenceChannelNone
 
struct AudioListItem gLayerFreeList
 
struct NotePool gNoteFreeLists
 
OSMesgQueue gCurrAudioFrameDmaQueue
 
u32 gSampleDmaNumListItems
 
ALSeqFile * gAlTbl
 
u8 * gAlBankSets
 

Macro Definition Documentation

◆ AUDIO_FRAME_DMA_QUEUE_SIZE

#define AUDIO_FRAME_DMA_QUEUE_SIZE   0x40

◆ IS_SEQUENCE_CHANNEL_VALID

#define IS_SEQUENCE_CHANNEL_VALID (   ptr)    ((u32)(ptr) != (u32)&gSequenceChannelNone)

◆ PRELOAD_BANKS

#define PRELOAD_BANKS   2

◆ PRELOAD_SEQUENCE

#define PRELOAD_SEQUENCE   1

Function Documentation

◆ audio_dma_partial_copy_async()

void audio_dma_partial_copy_async ( u32 *  devAddr,
u8 **  vAddr,
s32 *  remaining,
OSMesgQueue *  queue,
OSIoMesg *  mesg 
)

Performs a partial asynchronous (normal priority) DMA copy.

This is limited to 0x1000 bytes transfer at once.

◆ decrease_sample_dma_ttls()

void decrease_sample_dma_ttls ( void  )

◆ dma_sample_data()

void* dma_sample_data ( u8 *  arg0,
u32  arg1,
s32  arg2,
u8 *  arg3 
)

◆ func_8031758C()

void func_8031758C ( s32  arg0)

◆ func_8031784C()

void func_8031784C ( struct AudioBank *  arg0,
u8 *  offset,
u32  arg2,
u32  arg3 
)

◆ load_sequence()

void load_sequence ( u32  player,
u32  seqId,
s32  loadAsync 
)

◆ preload_sequence()

void preload_sequence ( u32  seqId,
u8  preloadMask 
)

Variable Documentation

◆ D_802245D8

struct SequenceChannelLayer D_802245D8[52]

◆ gAlBankSets

u8* gAlBankSets

◆ gAlTbl

ALSeqFile* gAlTbl

◆ gCurrAudioFrameDmaQueue

OSMesgQueue gCurrAudioFrameDmaQueue

◆ gLayerFreeList

struct AudioListItem gLayerFreeList

◆ gNoteFreeLists

struct NotePool gNoteFreeLists

◆ gNotes

struct Note* gNotes

◆ gSampleDmaNumListItems

u32 gSampleDmaNumListItems

◆ gSequenceChannelNone

struct SequenceChannel gSequenceChannelNone

◆ gSequenceChannels

struct SequenceChannel gSequenceChannels[32]

◆ gSequencePlayers