NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::detail::AxVoiceManager Class Reference

Description

Definition at line 19 of file snd_AxVoiceManager.h.

Public Member Functions

void Setup (void *mem, ulong memSize)
 
void Shutdown ()
 
ulong GetRequiredMemSize (int axVoiceCount)
 
AxVoiceAcquireAxVoice (ulong priority, AxVoice::Callback *callback, void *callbackData)
 
void ReserveForFreeAxVoice (AxVoice *voice)
 
void FreeAxVoice (AxVoice *voice)
 
void FreeAllReservedAxVoice ()
 

Static Public Member Functions

static AxVoiceManagerGetInstance ()
 

Static Public Attributes

static int const VOICE_COUNT_MARGIN = 16
 
static const int VOICE_MARGIN = 16
 
static const int VOICE_MAX = AX_VOICE_MAX + VOICE_MARGIN
 
static const int WORK_SIZE_MAX = VOICE_MAX * sizeof(AxVoice)
 

Private Member Functions

AxVoiceAlloc ()
 
void ReserveForFree (AxVoice *voice)
 
void Free (AxVoice *voice)
 

Private Attributes

AxVoice::LinkList mActiveVoiceList
 
AxVoice::LinkList mFreeVoiceList
 
AxVoice::LinkList mFreeReservedVoiceList
 
bool mInitialized
 
int mVoiceCount
 

Member Data Documentation

◆ VOICE_COUNT_MARGIN

int const nw4r::snd::detail::AxVoiceManager::VOICE_COUNT_MARGIN = 16
static

Definition at line 49 of file snd_AxVoiceManager.h.

◆ VOICE_MARGIN

const int nw4r::snd::detail::AxVoiceManager::VOICE_MARGIN = 16
static

Definition at line 50 of file snd_AxVoiceManager.h.

◆ VOICE_MAX

const int nw4r::snd::detail::AxVoiceManager::VOICE_MAX = AX_VOICE_MAX + VOICE_MARGIN
static

Definition at line 51 of file snd_AxVoiceManager.h.

◆ WORK_SIZE_MAX

const int nw4r::snd::detail::AxVoiceManager::WORK_SIZE_MAX = VOICE_MAX * sizeof(AxVoice)
static

Definition at line 52 of file snd_AxVoiceManager.h.

◆ mActiveVoiceList

AxVoice::LinkList nw4r::snd::detail::AxVoiceManager::mActiveVoiceList
private

Definition at line 56 of file snd_AxVoiceManager.h.

◆ mFreeVoiceList

AxVoice::LinkList nw4r::snd::detail::AxVoiceManager::mFreeVoiceList
private

Definition at line 57 of file snd_AxVoiceManager.h.

◆ mFreeReservedVoiceList

AxVoice::LinkList nw4r::snd::detail::AxVoiceManager::mFreeReservedVoiceList
private

Definition at line 58 of file snd_AxVoiceManager.h.

◆ mInitialized

bool nw4r::snd::detail::AxVoiceManager::mInitialized
private

Definition at line 59 of file snd_AxVoiceManager.h.

◆ mVoiceCount

int nw4r::snd::detail::AxVoiceManager::mVoiceCount
private

Definition at line 61 of file snd_AxVoiceManager.h.