NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::SoundHeap Class Reference
Inheritance diagram for nw4r::snd::SoundHeap:
[legend]

Description

Definition at line 12 of file snd_SoundHeap.h.

Public Member Functions

virtual void * Alloc (ulong size)
 
void * Alloc (ulong size, detail::FrameHeap::FreeCallback pCallback, void *pCallbackArg)
 
bool Create (void *pBase, ulong size)
 
void Destroy ()
 
void Clear ()
 
int SaveState ()
 
void LoadState (int id)
 
bool IsValid ()
 
int GetCurrentLevel () const
 
ulong GetFreeSize () const
 

Static Private Member Functions

static void DisposeCallbackFunc (void *pBuffer, ulong size, void *pCallbackArg)
 

Private Attributes

OSMutex mMutex
 
detail::FrameHeap mFrameHeap
 

Member Function Documentation

◆ Alloc()

virtual void * nw4r::snd::SoundHeap::Alloc ( ulong size)
virtual

◆ IsValid()

bool nw4r::snd::SoundHeap::IsValid ( )
inline

Definition at line 29 of file snd_SoundHeap.h.

◆ GetCurrentLevel()

int nw4r::snd::SoundHeap::GetCurrentLevel ( ) const
inline

Definition at line 33 of file snd_SoundHeap.h.

◆ GetFreeSize()

ulong nw4r::snd::SoundHeap::GetFreeSize ( ) const
inline

Definition at line 38 of file snd_SoundHeap.h.

Member Data Documentation

◆ mMutex

OSMutex nw4r::snd::SoundHeap::mMutex
mutableprivate

Definition at line 47 of file snd_SoundHeap.h.

◆ mFrameHeap

detail::FrameHeap nw4r::snd::SoundHeap::mFrameHeap
private

Definition at line 48 of file snd_SoundHeap.h.