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

Go to the source code of this file.

Data Structures

struct  SoundAllocPool
 
struct  SeqOrBankEntry
 
struct  PersistentPool
 
struct  TemporaryPool
 
struct  SoundMultiPool
 

Macros

#define SOUND_LOAD_STATUS_NOT_LOADED   0
 
#define SOUND_LOAD_STATUS_IN_PROGRESS   1
 
#define SOUND_LOAD_STATUS_COMPLETE   2
 
#define SOUND_LOAD_STATUS_DISCARDABLE   3
 
#define IS_BANK_LOAD_COMPLETE(bankId)   (gBankLoadStatus[bankId] >= SOUND_LOAD_STATUS_COMPLETE)
 
#define IS_SEQ_LOAD_COMPLETE(seqId)   (gSeqLoadStatus[seqId] >= SOUND_LOAD_STATUS_COMPLETE)
 

Functions

voidsoundAlloc (struct SoundAllocPool *pool, u32 size)
 
void func_80316108 (s32 arg0)
 
voidalloc_bank_or_seq (struct SoundMultiPool *arg0, s32 arg1, s32 size, s32 arg3, s32 id)
 
voidget_bank_or_seq (struct SoundMultiPool *arg0, s32 arg1, s32 arg2)
 
void func_80316928 (struct Struct80332190 *arg0)
 

Variables

u8 gAudioHeap []
 
s16 D_802212A0
 
s8 D_802212A2
 
u8 D_802212A3
 
struct SoundAllocPool gSoundPool
 
struct SoundAllocPool D_802212C8
 
struct SoundMultiPool gSeqLoadedPool
 
struct SoundMultiPool gBankLoadedPool
 
u8 gBankLoadStatus [64]
 
u8 gSeqLoadStatus [256]
 

Macro Definition Documentation

◆ IS_BANK_LOAD_COMPLETE

#define IS_BANK_LOAD_COMPLETE (   bankId)    (gBankLoadStatus[bankId] >= SOUND_LOAD_STATUS_COMPLETE)

◆ IS_SEQ_LOAD_COMPLETE

#define IS_SEQ_LOAD_COMPLETE (   seqId)    (gSeqLoadStatus[seqId] >= SOUND_LOAD_STATUS_COMPLETE)

◆ SOUND_LOAD_STATUS_COMPLETE

#define SOUND_LOAD_STATUS_COMPLETE   2

◆ SOUND_LOAD_STATUS_DISCARDABLE

#define SOUND_LOAD_STATUS_DISCARDABLE   3

◆ SOUND_LOAD_STATUS_IN_PROGRESS

#define SOUND_LOAD_STATUS_IN_PROGRESS   1

◆ SOUND_LOAD_STATUS_NOT_LOADED

#define SOUND_LOAD_STATUS_NOT_LOADED   0

Function Documentation

◆ alloc_bank_or_seq()

void* alloc_bank_or_seq ( struct SoundMultiPool arg0,
s32  arg1,
s32  size,
s32  arg3,
s32  id 
)

◆ func_80316108()

void func_80316108 ( s32  arg0)

◆ func_80316928()

void func_80316928 ( struct Struct80332190 arg0)

◆ get_bank_or_seq()

void* get_bank_or_seq ( struct SoundMultiPool arg0,
s32  arg1,
s32  arg2 
)

◆ soundAlloc()

void* soundAlloc ( struct SoundAllocPool pool,
u32  size 
)

Variable Documentation

◆ D_802212A0

s16 D_802212A0

◆ D_802212A2

s8 D_802212A2

◆ D_802212A3

u8 D_802212A3

◆ D_802212C8

struct SoundAllocPool D_802212C8

◆ gAudioHeap

u8 gAudioHeap[]

◆ gBankLoadedPool

struct SoundMultiPool gBankLoadedPool

◆ gBankLoadStatus

u8 gBankLoadStatus[64]

◆ gSeqLoadedPool

struct SoundMultiPool gSeqLoadedPool

◆ gSeqLoadStatus

u8 gSeqLoadStatus[256]

◆ gSoundPool

struct SoundAllocPool gSoundPool