NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::SoundActor Class Reference
Inheritance diagram for nw4r::snd::SoundActor:
[legend]

Description

Definition at line 28 of file snd_SoundActor.h.

Public Member Functions

 SoundActor (SoundArchivePlayer &player)
 
virtual ulong detail_ConvertLabelStringToSoundId (const char *label) override
 
virtual StartResult detail_SetupSound (SoundHandle *pHandle, ulong soundId, bool holdFlag, const StartInfo *pStartInfo) override
 
virtual StartResult SetupSound (SoundHandle *pHandle, ulong soundId, const StartInfo *pStartInfo, void *)
 
virtual StartResult detail_SetupSoundWithAmbientInfo (SoundHandle *, ulong, const StartInfo *, detail::BasicSound::AmbientInfo *, void *)
 
detail::ExternalSoundPlayerdetail_GetActorPlayer (int actorPlayerId)
 
template<typename TForEachFunc>
TForEachFunc ForEachSound (TForEachFunc pFunc, bool reverse)
 
detail::SoundActorParam const & detail_GetActorParam () const
 
void StopAllSound (int fadeFrames)
 
void PauseAllSound (bool flag, int fadeFrames)
 
int GetPlayingSoundCount (int playerId) const
 
- Public Member Functions inherited from nw4r::snd::SoundStartable
StartResult detail_StartSound (SoundHandle *pHandle, ulong id, const StartInfo *pStartInfo)
 
StartResult detail_StartSound (SoundHandle *pHandle, const char *label, const StartInfo *pStartInfo)
 
StartResult detail_HoldSound (SoundHandle *pHandle, ulong id, const StartInfo *pStartInfo)
 
StartResult detail_HoldSound (SoundHandle *pHandle, const char *label, const StartInfo *pStartInfo)
 
StartResult detail_PrepareSound (SoundHandle *pHandle, ulong id, const StartInfo *pStartInfo)
 
StartResult detail_PrepareSound (SoundHandle *pHandle, const char *label, const StartInfo *pStartInfo)
 
bool StartSound (SoundHandle *pHandle, ulong id)
 
bool StartSound (SoundHandle *pHandle, const char *label)
 
bool StartSound (SoundHandle *pHandle, unsigned int id)
 
bool StartSound (SoundHandle *pHandle, int id)
 
bool HoldSound (SoundHandle *pHandle, ulong id)
 
bool HoldSound (SoundHandle *pHandle, const char *label)
 
bool HoldSound (SoundHandle *pHandle, unsigned int id)
 
bool HoldSound (SoundHandle *pHandle, int id)
 
bool PrepareSound (SoundHandle *pHandle, ulong id)
 
bool PrepareSound (SoundHandle *pHandle, unsigned int id)
 
bool PrepareSound (SoundHandle *pHandle, int id)
 

Static Public Attributes

static int const ACTOR_PLAYER_COUNT = 4
 

Private Attributes

SoundArchivePlayermSoundArchivePlayer
 
detail::ExternalSoundPlayer mActorPlayer [ACTOR_PLAYER_COUNT]
 
detail::SoundActorParam mActorParam
 

Additional Inherited Members

- Public Types inherited from nw4r::snd::SoundStartable
enum  StartResult {
  START_SUCCESS ,
  START_ERR_LOW_PRIORITY ,
  START_ERR_INVALID_LABEL_STRING ,
  START_ERR_INVALID_SOUNDID ,
  START_ERR_NOT_DATA_LOADED ,
  START_ERR_NOT_ENOUGH_PLAYER_HEAP ,
  START_ERR_CANNOT_OPEN_FILE ,
  START_ERR_NOT_AVAILABLE ,
  START_ERR_CANNOT_ALLOCATE_TRACK ,
  START_ERR_NOT_ENOUGH_INSTANCE ,
  START_ERR_INVALID_PARAMETER ,
  START_ERR_INVALID_SEQ_START_LOCATION_LABEL ,
  START_ERR_USER = 128 ,
  START_ERR_UNKNOWN = 255
}
 

Member Function Documentation

◆ detail_ConvertLabelStringToSoundId()

virtual ulong nw4r::snd::SoundActor::detail_ConvertLabelStringToSoundId ( const char * label)
overridevirtual

◆ detail_SetupSound()

virtual StartResult nw4r::snd::SoundActor::detail_SetupSound ( SoundHandle * pHandle,
ulong soundId,
bool holdFlag,
const StartInfo * pStartInfo )
overridevirtual

◆ detail_GetActorPlayer()

detail::ExternalSoundPlayer * nw4r::snd::SoundActor::detail_GetActorPlayer ( int actorPlayerId)
inline

Definition at line 45 of file snd_SoundActor.h.

◆ ForEachSound()

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

Definition at line 55 of file snd_SoundActor.h.

◆ detail_GetActorParam()

detail::SoundActorParam const & nw4r::snd::SoundActor::detail_GetActorParam ( ) const
inline

Definition at line 63 of file snd_SoundActor.h.

Member Data Documentation

◆ ACTOR_PLAYER_COUNT

int const nw4r::snd::SoundActor::ACTOR_PLAYER_COUNT = 4
static

Definition at line 74 of file snd_SoundActor.h.

◆ mSoundArchivePlayer

SoundArchivePlayer& nw4r::snd::SoundActor::mSoundArchivePlayer
private

Definition at line 79 of file snd_SoundActor.h.

◆ mActorPlayer

detail::ExternalSoundPlayer nw4r::snd::SoundActor::mActorPlayer[ACTOR_PLAYER_COUNT]
private

Definition at line 80 of file snd_SoundActor.h.

◆ mActorParam

detail::SoundActorParam nw4r::snd::SoundActor::mActorParam
private

Definition at line 81 of file snd_SoundActor.h.