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

Description

Definition at line 248 of file snd_Channel.h.

Public Member Functions

ulong GetRequiredMemSize (int channelCount)
 
void Setup (void *mem, ulong memSize)
 
void Shutdown ()
 
ChannelAlloc ()
 
void Free (Channel *channel)
 
void UpdateAllChannel ()
 

Static Public Member Functions

static ChannelManagerGetInstance ()
 

Static Public Attributes

static const int VOICE_MARGIN = 1
 
static const int VOICE_MAX = AX_VOICE_MAX + VOICE_MARGIN
 
static const int WORK_SIZE_MAX = VOICE_MAX * sizeof(Channel)
 

Private Attributes

InstancePool< ChannelmPool
 
Channel::LinkList mChannelList
 
bool mInitialized
 
ulong mChannelCount
 
void * mMem
 
ulong mMemSize
 

Member Data Documentation

◆ VOICE_MARGIN

const int nw4r::snd::detail::ChannelManager::VOICE_MARGIN = 1
static

Definition at line 251 of file snd_Channel.h.

◆ VOICE_MAX

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

Definition at line 252 of file snd_Channel.h.

◆ WORK_SIZE_MAX

const int nw4r::snd::detail::ChannelManager::WORK_SIZE_MAX = VOICE_MAX * sizeof(Channel)
static

Definition at line 253 of file snd_Channel.h.

◆ mPool

InstancePool<Channel> nw4r::snd::detail::ChannelManager::mPool
private

Definition at line 275 of file snd_Channel.h.

◆ mChannelList

Channel::LinkList nw4r::snd::detail::ChannelManager::mChannelList
private

Definition at line 276 of file snd_Channel.h.

◆ mInitialized

bool nw4r::snd::detail::ChannelManager::mInitialized
private

Definition at line 277 of file snd_Channel.h.

◆ mChannelCount

ulong nw4r::snd::detail::ChannelManager::mChannelCount
private

Definition at line 279 of file snd_Channel.h.

◆ mMem

void* nw4r::snd::detail::ChannelManager::mMem
private

Definition at line 280 of file snd_Channel.h.

◆ mMemSize

ulong nw4r::snd::detail::ChannelManager::mMemSize
private

Definition at line 281 of file snd_Channel.h.