Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
nw4hbm::snd::SoundHeap Class Reference

#include <SoundHeap.h>

+ Inheritance diagram for nw4hbm::snd::SoundHeap:
+ Collaboration diagram for nw4hbm::snd::SoundHeap:

Public Member Functions

 SoundHeap ()
 
virtual ~SoundHeap ()
 
virtual void * Alloc (u32 size)
 
void * Alloc (u32 size, detail::FrameHeap::FreeCallback callback, void *callbackArg)
 
bool Create (void *base, u32 size)
 
void Destroy ()
 
void Clear ()
 
int SaveState ()
 
void LoadState (int id)
 
bool IsValid ()
 
int GetCurrentLevel () const
 
u32 GetFreeSize () const
 
- Public Member Functions inherited from nw4hbm::snd::SoundMemoryAllocatable
virtual ~SoundMemoryAllocatable ()
 

Static Private Member Functions

static void DisposeCallbackFunc (void *buffer, u32 size, void *callbackArg)
 

Private Attributes

OSMutex mMutex
 
detail::FrameHeap mFrameHeap
 

Constructor & Destructor Documentation

◆ SoundHeap()

nw4hbm::snd::SoundHeap::SoundHeap ( )

◆ ~SoundHeap()

virtual nw4hbm::snd::SoundHeap::~SoundHeap ( )
virtual

Member Function Documentation

◆ Alloc() [1/2]

virtual void * nw4hbm::snd::SoundHeap::Alloc ( u32 size)
virtual

◆ Alloc() [2/2]

void * nw4hbm::snd::SoundHeap::Alloc ( u32 size,
detail::FrameHeap::FreeCallback callback,
void * callbackArg )

◆ Clear()

void nw4hbm::snd::SoundHeap::Clear ( )
inline

◆ Create()

bool nw4hbm::snd::SoundHeap::Create ( void * base,
u32 size )

◆ Destroy()

void nw4hbm::snd::SoundHeap::Destroy ( )

◆ DisposeCallbackFunc()

static void nw4hbm::snd::SoundHeap::DisposeCallbackFunc ( void * buffer,
u32 size,
void * callbackArg )
staticprivate

◆ GetCurrentLevel()

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

◆ GetFreeSize()

u32 nw4hbm::snd::SoundHeap::GetFreeSize ( ) const
inline

◆ IsValid()

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

◆ LoadState()

void nw4hbm::snd::SoundHeap::LoadState ( int id)

◆ SaveState()

int nw4hbm::snd::SoundHeap::SaveState ( )

Member Data Documentation

◆ mFrameHeap

detail::FrameHeap nw4hbm::snd::SoundHeap::mFrameHeap
private

◆ mMutex

OSMutex nw4hbm::snd::SoundHeap::mMutex
mutableprivate

The documentation for this class was generated from the following file: