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

#include <SoundPlayer.h>

+ Collaboration diagram for nw4hbm::snd::SoundPlayer:

Public Member Functions

 SoundPlayer ()
 
 ~SoundPlayer ()
 
void InitParam ()
 
void Update ()
 
void StopAllSound (int frames)
 
void PauseAllSound (bool flag, int frames)
 
void SetVolume (f32 volume)
 
int detail_GetOutputLine () const
 
bool detail_IsEnabledOutputLine () const
 
f32 detail_GetRemoteOutVolume (int remoteIndex) const
 
void detail_InsertSoundList (detail::BasicSound *sound)
 
void detail_RemoveSoundList (detail::BasicSound *sound)
 
void detail_InsertPriorityList (detail::BasicSound *sound)
 
void detail_RemovePriorityList (detail::BasicSound *sound)
 
void detail_SortPriorityList ()
 
detail::SeqSounddetail_AllocSeqSound (int priority, int startPriority, detail::BasicSound::AmbientArgInfo *ambientArgInfo, detail::ExternalSoundPlayer *extPlayer, u32 id, detail::SoundInstanceManager< detail::SeqSound > *manager)
 
detail::StrmSounddetail_AllocStrmSound (int priority, int startPriority, detail::BasicSound::AmbientArgInfo *ambientArgInfo, detail::ExternalSoundPlayer *extPlayer, u32 id, detail::SoundInstanceManager< detail::StrmSound > *manager)
 
detail::WaveSounddetail_AllocWaveSound (int priority, int startPriority, detail::BasicSound::AmbientArgInfo *ambientArgInfo, detail::ExternalSoundPlayer *extPlayer, u32 id, detail::SoundInstanceManager< detail::WaveSound > *manager)
 
int CalcPriorityReduction (detail::BasicSound::AmbientArgInfo *ambientArgInfo, u32 id)
 
void InitAmbientArg (detail::BasicSound *sound, detail::BasicSound::AmbientArgInfo *ambientArgInfo)
 
void SetPlayableSoundCount (int count)
 
void detail_SetPlayableSoundLimit (int limit)
 
bool CheckPlayableSoundCount (int startPriority, detail::ExternalSoundPlayer *extPlayer)
 
void detail_AppendPlayerHeap (detail::PlayerHeap *pHeap)
 
void detail_AppendPlayerHeap2 (detail::PlayerHeap *pHeap)
 
detail::PlayerHeapdetail_AllocPlayerHeap (detail::BasicSound *sound)
 
void detail_FreePlayerHeap (detail::BasicSound *sound)
 
bool detail_AppendSound (detail::BasicSound *sound)
 
int GetPlayingSoundCount () const
 
int GetPlayableSoundCount () const
 
f32 GetVolume () const
 
detail::BasicSounddetail_GetLowestPrioritySound ()
 
f32 detail_GetMainOutVolume () const
 

Private Attributes

detail::BasicSoundPlayerPlayList mSoundList
 
detail::BasicSoundPlayerPrioList mPriorityList
 
detail::PlayerHeapList mHeapList
 
u16 mPlayableCount
 
u16 mPlayableLimit
 
f32 mVolume
 
bool mOutputLineFlagEnable
 
bool mUsePlayerHeap
 
int mOutputLineFlag
 
f32 mMainOutVolume
 
f32 mRemoteOutVolume [WPAD_MAX_CONTROLLERS]
 

Constructor & Destructor Documentation

◆ SoundPlayer()

nw4hbm::snd::SoundPlayer::SoundPlayer ( )

◆ ~SoundPlayer()

nw4hbm::snd::SoundPlayer::~SoundPlayer ( )

Member Function Documentation

◆ CalcPriorityReduction()

int nw4hbm::snd::SoundPlayer::CalcPriorityReduction ( detail::BasicSound::AmbientArgInfo * ambientArgInfo,
u32 id )

◆ CheckPlayableSoundCount()

bool nw4hbm::snd::SoundPlayer::CheckPlayableSoundCount ( int startPriority,
detail::ExternalSoundPlayer * extPlayer )

◆ detail_AllocPlayerHeap()

detail::PlayerHeap * nw4hbm::snd::SoundPlayer::detail_AllocPlayerHeap ( detail::BasicSound * sound)

◆ detail_AllocSeqSound()

detail::SeqSound * nw4hbm::snd::SoundPlayer::detail_AllocSeqSound ( int priority,
int startPriority,
detail::BasicSound::AmbientArgInfo * ambientArgInfo,
detail::ExternalSoundPlayer * extPlayer,
u32 id,
detail::SoundInstanceManager< detail::SeqSound > * manager )

◆ detail_AllocStrmSound()

detail::StrmSound * nw4hbm::snd::SoundPlayer::detail_AllocStrmSound ( int priority,
int startPriority,
detail::BasicSound::AmbientArgInfo * ambientArgInfo,
detail::ExternalSoundPlayer * extPlayer,
u32 id,
detail::SoundInstanceManager< detail::StrmSound > * manager )

◆ detail_AllocWaveSound()

detail::WaveSound * nw4hbm::snd::SoundPlayer::detail_AllocWaveSound ( int priority,
int startPriority,
detail::BasicSound::AmbientArgInfo * ambientArgInfo,
detail::ExternalSoundPlayer * extPlayer,
u32 id,
detail::SoundInstanceManager< detail::WaveSound > * manager )

◆ detail_AppendPlayerHeap()

void nw4hbm::snd::SoundPlayer::detail_AppendPlayerHeap ( detail::PlayerHeap * pHeap)

◆ detail_AppendPlayerHeap2()

void nw4hbm::snd::SoundPlayer::detail_AppendPlayerHeap2 ( detail::PlayerHeap * pHeap)

◆ detail_AppendSound()

bool nw4hbm::snd::SoundPlayer::detail_AppendSound ( detail::BasicSound * sound)

◆ detail_FreePlayerHeap()

void nw4hbm::snd::SoundPlayer::detail_FreePlayerHeap ( detail::BasicSound * sound)

◆ detail_GetLowestPrioritySound()

detail::BasicSound * nw4hbm::snd::SoundPlayer::detail_GetLowestPrioritySound ( )
inline

◆ detail_GetMainOutVolume()

f32 nw4hbm::snd::SoundPlayer::detail_GetMainOutVolume ( ) const
inline

◆ detail_GetOutputLine()

int nw4hbm::snd::SoundPlayer::detail_GetOutputLine ( ) const

◆ detail_GetRemoteOutVolume()

f32 nw4hbm::snd::SoundPlayer::detail_GetRemoteOutVolume ( int remoteIndex) const

◆ detail_InsertPriorityList()

void nw4hbm::snd::SoundPlayer::detail_InsertPriorityList ( detail::BasicSound * sound)

◆ detail_InsertSoundList()

void nw4hbm::snd::SoundPlayer::detail_InsertSoundList ( detail::BasicSound * sound)

◆ detail_IsEnabledOutputLine()

bool nw4hbm::snd::SoundPlayer::detail_IsEnabledOutputLine ( ) const

◆ detail_RemovePriorityList()

void nw4hbm::snd::SoundPlayer::detail_RemovePriorityList ( detail::BasicSound * sound)

◆ detail_RemoveSoundList()

void nw4hbm::snd::SoundPlayer::detail_RemoveSoundList ( detail::BasicSound * sound)

◆ detail_SetPlayableSoundLimit()

void nw4hbm::snd::SoundPlayer::detail_SetPlayableSoundLimit ( int limit)

◆ detail_SortPriorityList()

void nw4hbm::snd::SoundPlayer::detail_SortPriorityList ( )

◆ GetPlayableSoundCount()

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

◆ GetPlayingSoundCount()

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

◆ GetVolume()

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

◆ InitAmbientArg()

void nw4hbm::snd::SoundPlayer::InitAmbientArg ( detail::BasicSound * sound,
detail::BasicSound::AmbientArgInfo * ambientArgInfo )

◆ InitParam()

void nw4hbm::snd::SoundPlayer::InitParam ( )

◆ PauseAllSound()

void nw4hbm::snd::SoundPlayer::PauseAllSound ( bool flag,
int frames )

◆ SetPlayableSoundCount()

void nw4hbm::snd::SoundPlayer::SetPlayableSoundCount ( int count)

◆ SetVolume()

void nw4hbm::snd::SoundPlayer::SetVolume ( f32 volume)

◆ StopAllSound()

void nw4hbm::snd::SoundPlayer::StopAllSound ( int frames)

◆ Update()

void nw4hbm::snd::SoundPlayer::Update ( )

Member Data Documentation

◆ mHeapList

detail::PlayerHeapList nw4hbm::snd::SoundPlayer::mHeapList
private

◆ mMainOutVolume

f32 nw4hbm::snd::SoundPlayer::mMainOutVolume
private

◆ mOutputLineFlag

int nw4hbm::snd::SoundPlayer::mOutputLineFlag
private

◆ mOutputLineFlagEnable

bool nw4hbm::snd::SoundPlayer::mOutputLineFlagEnable
private

◆ mPlayableCount

u16 nw4hbm::snd::SoundPlayer::mPlayableCount
private

◆ mPlayableLimit

u16 nw4hbm::snd::SoundPlayer::mPlayableLimit
private

◆ mPriorityList

detail::BasicSoundPlayerPrioList nw4hbm::snd::SoundPlayer::mPriorityList
private

◆ mRemoteOutVolume

f32 nw4hbm::snd::SoundPlayer::mRemoteOutVolume[WPAD_MAX_CONTROLLERS]
private

◆ mSoundList

detail::BasicSoundPlayerPlayList nw4hbm::snd::SoundPlayer::mSoundList
private

◆ mUsePlayerHeap

bool nw4hbm::snd::SoundPlayer::mUsePlayerHeap
private

◆ mVolume

f32 nw4hbm::snd::SoundPlayer::mVolume
private

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