NW4F Snd
Loading...
Searching...
No Matches
nw::snd::internal::ExternalSoundPlayer Class Reference

#include <snd_ExternalSoundPlayer.h>

Public Types

typedef ut::LinkList< BasicSound, offsetof(BasicSound, m_ExtSoundPlayerPlayLink)> SoundList

Public Member Functions

 ExternalSoundPlayer ()
 ~ExternalSoundPlayer ()
void StopAllSound (int fadeFrames)
void PauseAllSound (bool flag, int fadeFrames)
int GetPlayingSoundCount () const
void SetPlayableSoundCount (int count)
int GetPlayableSoundCount () const
bool detail_CanPlaySound (int startPriority)
bool AppendSound (internal::BasicSound *sound)
void RemoveSound (internal::BasicSound *sound)
template<class Function>
void ForEachSoundRef (Function &function, bool reverse=false)
template<class Function>
Function ForEachSound (Function function, bool reverse=false)
void Finalize (SoundActor *actor)

Private Member Functions

internal::BasicSoundGetLowestPrioritySound ()

Private Attributes

SoundList m_SoundList
int m_PlayableCount

Member Typedef Documentation

◆ SoundList

Constructor & Destructor Documentation

◆ ExternalSoundPlayer()

nw::snd::internal::ExternalSoundPlayer::ExternalSoundPlayer ( )

◆ ~ExternalSoundPlayer()

nw::snd::internal::ExternalSoundPlayer::~ExternalSoundPlayer ( )

Member Function Documentation

◆ StopAllSound()

void nw::snd::internal::ExternalSoundPlayer::StopAllSound ( int fadeFrames)

◆ PauseAllSound()

void nw::snd::internal::ExternalSoundPlayer::PauseAllSound ( bool flag,
int fadeFrames )

◆ GetPlayingSoundCount()

int nw::snd::internal::ExternalSoundPlayer::GetPlayingSoundCount ( ) const
inline

◆ SetPlayableSoundCount()

void nw::snd::internal::ExternalSoundPlayer::SetPlayableSoundCount ( int count)

◆ GetPlayableSoundCount()

int nw::snd::internal::ExternalSoundPlayer::GetPlayableSoundCount ( ) const
inline

◆ detail_CanPlaySound()

bool nw::snd::internal::ExternalSoundPlayer::detail_CanPlaySound ( int startPriority)

◆ AppendSound()

bool nw::snd::internal::ExternalSoundPlayer::AppendSound ( internal::BasicSound * sound)

◆ RemoveSound()

void nw::snd::internal::ExternalSoundPlayer::RemoveSound ( internal::BasicSound * sound)

◆ ForEachSoundRef()

template<class Function>
void nw::snd::internal::ExternalSoundPlayer::ForEachSoundRef ( Function & function,
bool reverse = false )

◆ ForEachSound()

template<class Function>
Function nw::snd::internal::ExternalSoundPlayer::ForEachSound ( Function function,
bool reverse = false )

◆ Finalize()

void nw::snd::internal::ExternalSoundPlayer::Finalize ( SoundActor * actor)

◆ GetLowestPrioritySound()

internal::BasicSound * nw::snd::internal::ExternalSoundPlayer::GetLowestPrioritySound ( )
private

Member Data Documentation

◆ m_SoundList

SoundList nw::snd::internal::ExternalSoundPlayer::m_SoundList
private

◆ m_PlayableCount

int nw::snd::internal::ExternalSoundPlayer::m_PlayableCount
private