#include <snd_SoundActor.h>
Inherits nw::snd::SoundStartable.
Classes | |
| struct | SetupInfo |
Public Member Functions | |
| SoundActor (SoundArchivePlayer &soundArchivePlayer) | |
| SoundActor () | |
| ~SoundActor () override | |
| void | Initialize (SoundArchivePlayer &soundArchivePlayer) |
| void | Finalize () |
| void | StopAllSound (int fadeFrames) |
| void | PauseAllSound (bool flag, int fadeFrames) |
| void | SetVolume (f32 volume) |
| f32 | GetVolume () const |
| void | SetPitch (f32 pitch) |
| f32 | GetPitch () const |
| void | SetMainOutVolume (f32 volume) |
| f32 | GetMainOutVolume () const |
| void | SetPan (f32 pan) |
| f32 | GetPan () const |
| void | SetDrcOutVolume (f32 volume, u32 drcIndex=0) |
| f32 | GetDrcOutVolume (u32 drcIndex=0) const |
| void | SetDrcPan (f32 pan, u32 drcIndex=0) |
| f32 | GetDrcPan (u32 drcIndex=0) const |
| int | GetPlayingSoundCount (int actorPlayerId) const |
| void | SetPlayableSoundCount (int actorPlayerId, int count) |
| int | GetPlayableSoundCount (int actorPlayerId) const |
| template<class Function> | |
| void | ForEachSoundRef (Function &function, bool reverse=false) |
| template<class Function> | |
| Function | ForEachSound (Function function, bool reverse=false) |
| ActorPlayer * | detail_GetActorPlayer (int actorPlayerId) |
| const internal::SoundActorParam & | detail_GetActorParam () const |
| virtual SoundStartable::StartResult | detail_SetupSoundWithAmbientInfo (SoundHandle *handle, u32 soundId, const SoundStartable::StartInfo *startInfo, internal::BasicSound::AmbientInfo *ambientInfo, void *setupArg) |
| Public Member Functions inherited from nw::snd::SoundStartable | |
| virtual | ~SoundStartable () |
| StartResult | StartSound (SoundHandle *pHandle, SoundArchive::ItemId soundId, const StartInfo *pStartInfo=NULL) |
| StartResult | StartSound (SoundHandle *pHandle, const char *pSoundName, const StartInfo *pStartInfo=NULL) |
| StartResult | HoldSound (SoundHandle *pHandle, SoundArchive::ItemId soundId, const StartInfo *pHoldInfo=NULL) |
| StartResult | HoldSound (SoundHandle *pHandle, const char *pSoundName, const StartInfo *pHoldInfo=NULL) |
| StartResult | PrepareSound (SoundHandle *pHandle, SoundArchive::ItemId soundId, const StartInfo *pStartInfo=NULL) |
| StartResult | PrepareSound (SoundHandle *pHandle, const char *pSoundName, const StartInfo *pStartInfo=NULL) |
Static Public Attributes | |
| static const int | ACTOR_PLAYER_COUNT = 4 |
Protected Member Functions | |
| virtual SoundStartable::StartResult | SetupSound (SoundHandle *handle, u32 soundId, const SoundStartable::StartInfo *startInfo, void *setupArg) |
Private Types | |
| typedef internal::ExternalSoundPlayer | ActorPlayer |
Private Member Functions | |
| SoundStartable::StartResult | detail_SetupSound (SoundHandle *handle, u32 soundId, bool holdFlag, const SoundStartable::StartInfo *startInfo) override |
| SoundArchive::ItemId | detail_GetItemId (const char *pString) override |
Private Attributes | |
| SoundArchivePlayer * | m_pSoundArchivePlayer |
| ActorPlayer | m_ActorPlayer [ACTOR_PLAYER_COUNT] |
| internal::SoundActorParam | m_ActorParam |
| bool | m_IsInitialized |
| bool | m_IsFinalized |
|
private |
| nw::snd::SoundActor::SoundActor | ( | SoundArchivePlayer & | soundArchivePlayer | ) |
| nw::snd::SoundActor::SoundActor | ( | ) |
|
override |
| void nw::snd::SoundActor::Initialize | ( | SoundArchivePlayer & | soundArchivePlayer | ) |
| void nw::snd::SoundActor::Finalize | ( | ) |
| void nw::snd::SoundActor::StopAllSound | ( | int | fadeFrames | ) |
| void nw::snd::SoundActor::PauseAllSound | ( | bool | flag, |
| int | fadeFrames ) |
|
protectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int nw::snd::SoundActor::GetPlayingSoundCount | ( | int | actorPlayerId | ) | const |
| void nw::snd::SoundActor::SetPlayableSoundCount | ( | int | actorPlayerId, |
| int | count ) |
| int nw::snd::SoundActor::GetPlayableSoundCount | ( | int | actorPlayerId | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
overrideprivatevirtual |
Implements nw::snd::SoundStartable.
|
overrideprivatevirtual |
Implements nw::snd::SoundStartable.
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |