Mario Kart 64
Loading...
Searching...
No Matches
heap.h File Reference
#include <PR/ultratypes.h>
#include "internal.h"
Include dependency graph for heap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SoundAllocPool
 
struct  SeqOrBankEntry
 
struct  PersistentPool
 
struct  TemporaryPool
 
struct  SoundMultiPool
 
struct  Unk1Pool
 
struct  UnkEntry
 
struct  UnkPool
 
struct  PoolSplit
 
struct  PoolSplit2
 

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 SOUND_LOAD_STATUS_4   4
 
#define SOUND_LOAD_STATUS_5   5
 
#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

void reset_bank_and_seq_load_status (void)
 
void discard_bank (s32 bankId)
 
void discard_sequence (s32 seqId)
 
void * soundAlloc (struct SoundAllocPool *pool, u32 size)
 
void sound_alloc_pool_init (struct SoundAllocPool *pool, void *memAddr, u32 size)
 
void persistent_pool_clear (struct PersistentPool *persistent)
 
void temporary_pool_clear (struct TemporaryPool *temporary)
 
void func_800B90E0 (struct SoundAllocPool *pool)
 
void sound_init_main_pools (s32)
 
void func_800B914C (struct PoolSplit *)
 
void seq_and_bank_pool_init (struct PoolSplit2 *a)
 
void persistent_pools_init (struct PoolSplit *a)
 
void temporary_pools_init (struct PoolSplit *a)
 
void * alloc_bank_or_seq (struct SoundMultiPool *, s32, s32, s32, s32)
 
void * get_bank_or_seq (s32 poolIdx, s32 arg1, s32 id)
 
void * get_bank_or_seq_inner (s32 poolIdx, s32 arg1, s32 bankId)
 
void func_800B9BE4 (f32, f32, u16 *)
 
void decrease_reverb_gain (void)
 
s32 audio_shut_down_and_reset_step (void)
 
void audio_reset_session (void)
 
void * unk_pool1_lookup (s32 poolIdx, s32 id)
 
void func_800BA8B0 (s32, s32)
 

Variables

s32 D_800EA5D0
 
s32 gMaxAudioCmds
 
s16 gTempoInternalToExternal
 
f32 D_803B7178
 
s32 gRefreshRate
 
u32 gSampleDmaNumListItems
 
struct AudioSessionSettingsEU gAudioSessionPresets []
 
s16 gVolume
 
s8 gUseReverb
 
s8 gNumSynthesisReverbs
 
struct NoteSubEugNoteSubsEu
 
struct SoundAllocPool gAudioSessionPool
 
struct SoundAllocPool gAudioInitPool
 
struct SoundAllocPool gNotesAndBuffersPool
 
struct SoundAllocPool gPersistentCommonPool
 
struct SoundAllocPool gTemporaryCommonPool
 
struct SoundMultiPool gSeqLoadedPool
 
struct SoundMultiPool gBankLoadedPool
 
struct SoundMultiPool gUnusedLoadedPool
 
struct Unk1Pool gUnkPool1
 
struct PoolSplit sSessionPoolSplit
 
struct PoolSplit2 sSeqAndBankPoolSplit
 
struct PoolSplit sPersistentCommonPoolSplit
 
struct PoolSplit sTemporaryCommonPoolSplit
 
struct SoundAllocPool gSeqAndBankPool
 
u8 gBankLoadStatus [64]
 
u8 gUnkLoadStatus [64]
 
u8 gSeqLoadStatus [256]
 
volatile u8 gAudioResetStatus
 
u8 gAudioResetPresetIdToLoad
 
s32 gAudioResetFadeOutFramesLeft
 
struct NotegNotes
 

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_4

#define SOUND_LOAD_STATUS_4   4

◆ SOUND_LOAD_STATUS_5

#define SOUND_LOAD_STATUS_5   5

◆ 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 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_reset_session()

void audio_reset_session ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_shut_down_and_reset_step()

s32 audio_shut_down_and_reset_step ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ decrease_reverb_gain()

void decrease_reverb_gain ( void )
Here is the caller graph for this function:

◆ discard_bank()

void discard_bank ( s32 bankId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ discard_sequence()

void discard_sequence ( s32 seqId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_800B90E0()

void func_800B90E0 ( struct SoundAllocPool * pool)

◆ func_800B914C()

void func_800B914C ( struct PoolSplit * arg0)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_800B9BE4()

void func_800B9BE4 ( f32 arg0,
f32 arg1,
u16 * arg2 )
Bug
they probably meant to store the value to tmp[i] and tmp[8 + i]

◆ func_800BA8B0()

void func_800BA8B0 ( s32 poolIdx,
s32 id )
Here is the call graph for this function:

◆ get_bank_or_seq()

void * get_bank_or_seq ( s32 poolIdx,
s32 arg1,
s32 id )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_bank_or_seq_inner()

void * get_bank_or_seq_inner ( s32 poolIdx,
s32 arg1,
s32 bankId )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ persistent_pool_clear()

void persistent_pool_clear ( struct PersistentPool * persistent)
Here is the caller graph for this function:

◆ persistent_pools_init()

void persistent_pools_init ( struct PoolSplit * a)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_bank_and_seq_load_status()

void reset_bank_and_seq_load_status ( void )
Here is the caller graph for this function:

◆ seq_and_bank_pool_init()

void seq_and_bank_pool_init ( struct PoolSplit2 * a)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sound_alloc_pool_init()

void sound_alloc_pool_init ( struct SoundAllocPool * pool,
void * memAddr,
u32 size )
Here is the caller graph for this function:

◆ sound_init_main_pools()

void sound_init_main_pools ( s32 arg0)
Here is the call graph for this function:

◆ soundAlloc()

void * soundAlloc ( struct SoundAllocPool * pool,
u32 size )
Here is the caller graph for this function:

◆ temporary_pool_clear()

void temporary_pool_clear ( struct TemporaryPool * temporary)
Here is the caller graph for this function:

◆ temporary_pools_init()

void temporary_pools_init ( struct PoolSplit * a)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unk_pool1_lookup()

void * unk_pool1_lookup ( s32 poolIdx,
s32 id )
Here is the caller graph for this function:

Variable Documentation

◆ D_800EA5D0

s32 D_800EA5D0
extern

◆ D_803B7178

f32 D_803B7178
extern

◆ gAudioInitPool

struct SoundAllocPool gAudioInitPool
extern

◆ gAudioResetFadeOutFramesLeft

s32 gAudioResetFadeOutFramesLeft
extern

◆ gAudioResetPresetIdToLoad

u8 gAudioResetPresetIdToLoad
extern

◆ gAudioResetStatus

volatile u8 gAudioResetStatus
extern

◆ gAudioSessionPool

struct SoundAllocPool gAudioSessionPool
extern

◆ gAudioSessionPresets

struct AudioSessionSettingsEU gAudioSessionPresets[]
extern

◆ gBankLoadedPool

struct SoundMultiPool gBankLoadedPool
extern

◆ gBankLoadStatus

u8 gBankLoadStatus[64]
extern

◆ gMaxAudioCmds

s32 gMaxAudioCmds
extern

◆ gNotes

struct Note* gNotes
extern

◆ gNotesAndBuffersPool

struct SoundAllocPool gNotesAndBuffersPool
extern

◆ gNoteSubsEu

struct NoteSubEu* gNoteSubsEu
extern

◆ gNumSynthesisReverbs

s8 gNumSynthesisReverbs
extern

◆ gPersistentCommonPool

struct SoundAllocPool gPersistentCommonPool
extern

◆ gRefreshRate

s32 gRefreshRate
extern

◆ gSampleDmaNumListItems

u32 gSampleDmaNumListItems
extern

◆ gSeqAndBankPool

struct SoundAllocPool gSeqAndBankPool
extern

◆ gSeqLoadedPool

struct SoundMultiPool gSeqLoadedPool
extern

◆ gSeqLoadStatus

u8 gSeqLoadStatus[256]
extern

◆ gTempoInternalToExternal

s16 gTempoInternalToExternal
extern

◆ gTemporaryCommonPool

struct SoundAllocPool gTemporaryCommonPool
extern

◆ gUnkLoadStatus

u8 gUnkLoadStatus[64]
extern

◆ gUnkPool1

struct Unk1Pool gUnkPool1
extern

◆ gUnusedLoadedPool

struct SoundMultiPool gUnusedLoadedPool
extern

◆ gUseReverb

s8 gUseReverb
extern

◆ gVolume

s16 gVolume
extern

◆ sPersistentCommonPoolSplit

struct PoolSplit sPersistentCommonPoolSplit
extern

◆ sSeqAndBankPoolSplit

struct PoolSplit2 sSeqAndBankPoolSplit
extern

◆ sSessionPoolSplit

struct PoolSplit sSessionPoolSplit
extern

◆ sTemporaryCommonPoolSplit

struct PoolSplit sTemporaryCommonPoolSplit
extern