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

Description

Definition at line 23 of file snd_SoundPlayer.h.

Public Member Functions

int GetPlayableSoundCount () const
 
f32 GetVolume () const
 
void SetVolume (f32 volume)
 
f32 GetLpfFreq () const
 
void SetLpfFreq (f32 freq)
 
int GetDefaultOutputLine () const
 
f32 GetMainOutVolume () const
 
int GetBiquadFilterType () const
 
f32 GetBiquadFilterValue () const
 
f32 GetMainSend () const
 
f32 GetFxSend (int index) const
 
void SetFxSend (AuxBus, f32)
 
void SetPlayableSoundCount (int count)
 
f32 GetRemoteOutVolume (int remote) const
 
int GetPlayingSoundCount () const
 
detail::BasicSoundGetLowestPrioritySound ()
 
void Update ()
 
void PauseAllSound (bool flag, int fadeFrames)
 
void StopAllSound (int fadeFrames)
 
void RemoveSoundList (detail::BasicSound *sound)
 
bool detail_AppendSound (detail::BasicSound *sound)
 
void detail_RemoveSound (detail::BasicSound *sound)
 
void detail_SetPlayableSoundLimit (int limit)
 
bool detail_CanPlaySound (int startPriority)
 
void InsertPriorityList (detail::BasicSound *sound)
 
void RemovePriorityList (detail::BasicSound *sound)
 
void detail_SortPriorityList (detail::BasicSound *sound)
 
void detail_SortPriorityList ()
 
detail::PlayerHeapdetail_AllocPlayerHeap (detail::BasicSound *sound)
 
void detail_FreePlayerHeap (detail::BasicSound *sound)
 
void detail_AppendPlayerHeap (detail::PlayerHeap *heap)
 
template<typename TForEachFunc>
TForEachFunc ForEachSound (TForEachFunc pFunc, bool reverse)
 

Private Attributes

detail::BasicSound::SoundPlayerPlayLinkList mSoundList
 
detail::BasicSound::SoundPlayerPriorityLinkList mPriorityList
 
detail::PlayerHeap::LinkList mHeapList
 
int mPlayableCount
 
int mPlayableLimit
 
f32 mVolume
 
f32 mLpfFreq
 
int mOutputLineFlag
 
f32 mMainOutVolume
 
int mBiquadType
 
f32 mBiquadValue
 
f32 mRemoteOutVolume [4]
 
f32 mMainSend
 
f32 mFxSend [AUX_BUS_NUM]
 

Member Function Documentation

◆ GetPlayableSoundCount()

int nw4r::snd::SoundPlayer::GetPlayableSoundCount ( ) const
inline

Definition at line 32 of file snd_SoundPlayer.h.

◆ GetVolume()

f32 nw4r::snd::SoundPlayer::GetVolume ( ) const
inline

Definition at line 33 of file snd_SoundPlayer.h.

◆ GetLpfFreq()

f32 nw4r::snd::SoundPlayer::GetLpfFreq ( ) const
inline

Definition at line 35 of file snd_SoundPlayer.h.

◆ GetDefaultOutputLine()

int nw4r::snd::SoundPlayer::GetDefaultOutputLine ( ) const
inline

Definition at line 37 of file snd_SoundPlayer.h.

◆ GetMainOutVolume()

f32 nw4r::snd::SoundPlayer::GetMainOutVolume ( ) const
inline

Definition at line 38 of file snd_SoundPlayer.h.

◆ GetBiquadFilterType()

int nw4r::snd::SoundPlayer::GetBiquadFilterType ( ) const
inline

Definition at line 39 of file snd_SoundPlayer.h.

◆ GetBiquadFilterValue()

f32 nw4r::snd::SoundPlayer::GetBiquadFilterValue ( ) const
inline

Definition at line 40 of file snd_SoundPlayer.h.

◆ GetMainSend()

f32 nw4r::snd::SoundPlayer::GetMainSend ( ) const
inline

Definition at line 41 of file snd_SoundPlayer.h.

◆ GetFxSend()

f32 nw4r::snd::SoundPlayer::GetFxSend ( int index) const
inline

Definition at line 42 of file snd_SoundPlayer.h.

◆ GetPlayingSoundCount()

int nw4r::snd::SoundPlayer::GetPlayingSoundCount ( ) const
inline

Definition at line 48 of file snd_SoundPlayer.h.

◆ GetLowestPrioritySound()

detail::BasicSound * nw4r::snd::SoundPlayer::GetLowestPrioritySound ( )
inline

Definition at line 49 of file snd_SoundPlayer.h.

◆ ForEachSound()

template<typename TForEachFunc>
TForEachFunc nw4r::snd::SoundPlayer::ForEachSound ( TForEachFunc pFunc,
bool reverse )
inline

Definition at line 75 of file snd_SoundPlayer.h.

Member Data Documentation

◆ mSoundList

detail::BasicSound::SoundPlayerPlayLinkList nw4r::snd::SoundPlayer::mSoundList
private

Definition at line 104 of file snd_SoundPlayer.h.

◆ mPriorityList

detail::BasicSound::SoundPlayerPriorityLinkList nw4r::snd::SoundPlayer::mPriorityList
private

Definition at line 105 of file snd_SoundPlayer.h.

◆ mHeapList

detail::PlayerHeap::LinkList nw4r::snd::SoundPlayer::mHeapList
private

Definition at line 106 of file snd_SoundPlayer.h.

◆ mPlayableCount

int nw4r::snd::SoundPlayer::mPlayableCount
private

Definition at line 107 of file snd_SoundPlayer.h.

◆ mPlayableLimit

int nw4r::snd::SoundPlayer::mPlayableLimit
private

Definition at line 108 of file snd_SoundPlayer.h.

◆ mVolume

f32 nw4r::snd::SoundPlayer::mVolume
private

Definition at line 109 of file snd_SoundPlayer.h.

◆ mLpfFreq

f32 nw4r::snd::SoundPlayer::mLpfFreq
private

Definition at line 110 of file snd_SoundPlayer.h.

◆ mOutputLineFlag

int nw4r::snd::SoundPlayer::mOutputLineFlag
private

Definition at line 111 of file snd_SoundPlayer.h.

◆ mMainOutVolume

f32 nw4r::snd::SoundPlayer::mMainOutVolume
private

Definition at line 112 of file snd_SoundPlayer.h.

◆ mBiquadType

int nw4r::snd::SoundPlayer::mBiquadType
private

Definition at line 113 of file snd_SoundPlayer.h.

◆ mBiquadValue

f32 nw4r::snd::SoundPlayer::mBiquadValue
private

Definition at line 114 of file snd_SoundPlayer.h.

◆ mRemoteOutVolume

f32 nw4r::snd::SoundPlayer::mRemoteOutVolume[4]
private

Definition at line 115 of file snd_SoundPlayer.h.

◆ mMainSend

f32 nw4r::snd::SoundPlayer::mMainSend
private

Definition at line 116 of file snd_SoundPlayer.h.

◆ mFxSend

f32 nw4r::snd::SoundPlayer::mFxSend[AUX_BUS_NUM]
private

Definition at line 117 of file snd_SoundPlayer.h.