Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Data Structures | Macros | Functions | Variables
memory.c File Reference
#include <ultra64.h>
#include <macros.h>
#include "memory.h"
#include "data.h"
#include "load.h"
#include "synthesis.h"
#include "seqplayer.h"
#include "effects.h"

Data Structures

struct  Struct803161E0
 
struct  U32Pair
 

Macros

#define ALIGN16(val)   (((val) + 0xF) & ~0xF)
 
#define frames   s1
 

Functions

void reset_bank_and_seq_load_status (void)
 
void discard_bank (s32 bankId)
 
void discard_sequence (s32 seqId)
 
voidsoundAlloc (struct SoundAllocPool *pool, u32 size)
 
void func_80316094 (struct SoundAllocPool *pool, void *arg1, u32 arg2)
 
void func_803160B4 (struct PersistentPool *persistent)
 
void func_803160C8 (struct TemporaryPool *temporary)
 
void unused_803160F8 (struct SoundAllocPool *pool)
 
void func_80316108 (s32 arg0)
 
void func_80316164 (struct Struct803161E0 *a)
 
void func_803161E0 (struct U32Pair *a)
 
void func_8031625C (struct Struct803161E0 *a)
 
void func_80316318 (struct Struct803161E0 *a)
 
static void unused_803163D4 ()
 
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 id)
 
void func_803168CC (void)
 
void wait_for_audio_frames (s32 frames)
 Waits until a specified number of audio frames have been created. More...
 
void func_80316928 (struct Struct80332190 *arg0)
 

Variables

s16 D_802212A0
 
s8 D_802212A2
 
u8 D_802212A3
 
struct SoundAllocPool D_802212A8
 
struct SoundAllocPool gSoundPool
 
struct SoundAllocPool D_802212C8
 
u8 sAudioMemoryPad [0x20]
 
struct SoundAllocPool D_802212F8
 
struct SoundAllocPool D_80221308
 
struct SoundAllocPool D_80221318
 
struct SoundMultiPool gSeqLoadedPool
 
struct SoundMultiPool gBankLoadedPool
 
struct SoundMultiPool gUnusedLoadedPool
 
struct Struct803161E0 D_80221898
 
struct U32Pair D_802218A8
 
struct Struct803161E0 D_802218B0
 
struct Struct803161E0 D_802218C0
 
u8 gBankLoadStatus [0x40]
 
u8 gSeqLoadStatus [0x100]
 
u8 gAudioUnusedBuffer [0x1000]
 
s32 D_80226D6C
 

Macro Definition Documentation

◆ ALIGN16

#define ALIGN16 (   val)    (((val) + 0xF) & ~0xF)

◆ frames

#define frames   s1

Function Documentation

◆ alloc_bank_or_seq()

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

◆ discard_bank()

void discard_bank ( s32  bankId)

◆ discard_sequence()

void discard_sequence ( s32  seqId)

◆ func_80316094()

void func_80316094 ( struct SoundAllocPool pool,
void arg1,
u32  arg2 
)

◆ func_803160B4()

void func_803160B4 ( struct PersistentPool persistent)

◆ func_803160C8()

void func_803160C8 ( struct TemporaryPool temporary)

◆ func_80316108()

void func_80316108 ( s32  arg0)

◆ func_80316164()

void func_80316164 ( struct Struct803161E0 a)

◆ func_803161E0()

void func_803161E0 ( struct U32Pair a)

◆ func_8031625C()

void func_8031625C ( struct Struct803161E0 a)

◆ func_80316318()

void func_80316318 ( struct Struct803161E0 a)

◆ func_803168CC()

void func_803168CC ( void  )

◆ func_80316928()

void func_80316928 ( struct Struct80332190 arg0)

◆ get_bank_or_seq()

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

◆ reset_bank_and_seq_load_status()

void reset_bank_and_seq_load_status ( void  )

◆ soundAlloc()

void* soundAlloc ( struct SoundAllocPool pool,
u32  size 
)

◆ unused_803160F8()

void unused_803160F8 ( struct SoundAllocPool pool)

◆ unused_803163D4()

static void unused_803163D4 ( )
static

◆ wait_for_audio_frames()

void wait_for_audio_frames ( s32  frames)

Waits until a specified number of audio frames have been created.

Variable Documentation

◆ D_802212A0

s16 D_802212A0

◆ D_802212A2

s8 D_802212A2

◆ D_802212A3

u8 D_802212A3

◆ D_802212A8

struct SoundAllocPool D_802212A8

◆ D_802212C8

struct SoundAllocPool D_802212C8

◆ D_802212F8

struct SoundAllocPool D_802212F8

◆ D_80221308

struct SoundAllocPool D_80221308

◆ D_80221318

struct SoundAllocPool D_80221318

◆ D_80221898

struct Struct803161E0 D_80221898

◆ D_802218A8

struct U32Pair D_802218A8

◆ D_802218B0

struct Struct803161E0 D_802218B0

◆ D_802218C0

struct Struct803161E0 D_802218C0

◆ D_80226D6C

s32 D_80226D6C

◆ gAudioUnusedBuffer

u8 gAudioUnusedBuffer[0x1000]

◆ gBankLoadedPool

struct SoundMultiPool gBankLoadedPool

◆ gBankLoadStatus

u8 gBankLoadStatus[0x40]

◆ gSeqLoadedPool

struct SoundMultiPool gSeqLoadedPool

◆ gSeqLoadStatus

u8 gSeqLoadStatus[0x100]

◆ gSoundPool

struct SoundAllocPool gSoundPool

◆ gUnusedLoadedPool

struct SoundMultiPool gUnusedLoadedPool

◆ sAudioMemoryPad

u8 sAudioMemoryPad[0x20]