NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::detail::SoundInstanceManager< Sound > Class Template Reference

Description

template<class Sound>
class nw4r::snd::detail::SoundInstanceManager< Sound >

Definition at line 29 of file snd_SoundInstanceManager.h.

Public Member Functions

ulong Create (void *buffer, ulong size)
 
void Destroy (void *buffer, ulong size)
 
Sound * Alloc (int priority, int ambientPriority)
 
void Free (Sound *sound)
 
ulong GetActiveCount () const
 
Sound * GetLowestPrioritySound ()
 
void InsertPriorityList (Sound *sound, int priority)
 
void SortPriorityList ()
 
void RemovePriorityList (Sound *sound)
 
void UpdatePriority (Sound *sound, int priority)
 

Private Attributes

MemoryPool< Sound > mPool
 
Sound::PriorityLinkList mPriorityList
 
OSMutex mMutex
 

Constructor & Destructor Documentation

◆ SoundInstanceManager()

template<class Sound>
nw4r::snd::detail::SoundInstanceManager< Sound >::SoundInstanceManager ( )
inline

Definition at line 34 of file snd_SoundInstanceManager.h.

Member Function Documentation

◆ Create()

template<class Sound>
ulong nw4r::snd::detail::SoundInstanceManager< Sound >::Create ( void * buffer,
ulong size )
inline

Definition at line 37 of file snd_SoundInstanceManager.h.

◆ Destroy()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::Destroy ( void * buffer,
ulong size )
inline

Definition at line 46 of file snd_SoundInstanceManager.h.

◆ Alloc()

template<class Sound>
Sound * nw4r::snd::detail::SoundInstanceManager< Sound >::Alloc ( int priority,
int ambientPriority )
inline

Definition at line 55 of file snd_SoundInstanceManager.h.

◆ Free()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::Free ( Sound * sound)
inline

Definition at line 99 of file snd_SoundInstanceManager.h.

◆ GetActiveCount()

template<class Sound>
ulong nw4r::snd::detail::SoundInstanceManager< Sound >::GetActiveCount ( ) const
inline

Definition at line 113 of file snd_SoundInstanceManager.h.

◆ GetLowestPrioritySound()

template<class Sound>
Sound * nw4r::snd::detail::SoundInstanceManager< Sound >::GetLowestPrioritySound ( )
inline

Definition at line 115 of file snd_SoundInstanceManager.h.

◆ InsertPriorityList()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::InsertPriorityList ( Sound * sound,
int priority )
inline

Definition at line 123 of file snd_SoundInstanceManager.h.

◆ SortPriorityList()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::SortPriorityList ( )
inline

Definition at line 137 of file snd_SoundInstanceManager.h.

◆ RemovePriorityList()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::RemovePriorityList ( Sound * sound)
inline

Definition at line 168 of file snd_SoundInstanceManager.h.

◆ UpdatePriority()

template<class Sound>
void nw4r::snd::detail::SoundInstanceManager< Sound >::UpdatePriority ( Sound * sound,
int priority )
inline

Definition at line 170 of file snd_SoundInstanceManager.h.

Member Data Documentation

◆ mPool

template<class Sound>
MemoryPool<Sound> nw4r::snd::detail::SoundInstanceManager< Sound >::mPool
private

Definition at line 180 of file snd_SoundInstanceManager.h.

◆ mPriorityList

template<class Sound>
Sound::PriorityLinkList nw4r::snd::detail::SoundInstanceManager< Sound >::mPriorityList
private

Definition at line 181 of file snd_SoundInstanceManager.h.

◆ mMutex

template<class Sound>
OSMutex nw4r::snd::detail::SoundInstanceManager< Sound >::mMutex
private

Definition at line 182 of file snd_SoundInstanceManager.h.