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

Description

Definition at line 15 of file snd_Sound3DActor.h.

Public Member Functions

 Sound3DActor (SoundArchivePlayer &rPlayer, Sound3DManager &rManager)
 
virtual StartResult SetupSound (SoundHandle *pHandle, ulong soundId, const StartInfo *pStartInfo, void *) override
 
virtual void at_0x0c (void *arg, detail::BasicSound *sound) override
 
const nw4r::math::VEC3GetPosition () const
 
void SetPosition (const math::VEC3 &rPosition)
 
void SetUserParam (ulong userParam)
 
- Public Member Functions inherited from nw4r::snd::SoundActor
 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 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 Private Member Functions

static void ClearUpdateCallback (SoundHandle &rHandle)
 

Private Attributes

Sound3DManagerm3DManager
 
SoundArchivePlayermSoundArchivePlayer
 
ulong mUserParam
 
math::VEC3 mPosition
 
math::VEC3 mVelocity
 
bool mSkipVelocityUpdate
 

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
}
 
- Static Public Attributes inherited from nw4r::snd::SoundActor
static int const ACTOR_PLAYER_COUNT = 4
 

Member Function Documentation

◆ SetupSound()

virtual StartResult nw4r::snd::Sound3DActor::SetupSound ( SoundHandle * pHandle,
ulong soundId,
const StartInfo * pStartInfo,
void *  )
overridevirtual

Reimplemented from nw4r::snd::SoundActor.

◆ at_0x0c()

virtual void nw4r::snd::Sound3DActor::at_0x0c ( void * arg,
detail::BasicSound * sound )
overridevirtual

◆ GetPosition()

const nw4r::math::VEC3 & nw4r::snd::Sound3DActor::GetPosition ( ) const
inline

Definition at line 25 of file snd_Sound3DActor.h.

◆ SetUserParam()

void nw4r::snd::Sound3DActor::SetUserParam ( ulong userParam)
inline

Definition at line 30 of file snd_Sound3DActor.h.

Member Data Documentation

◆ m3DManager

Sound3DManager& nw4r::snd::Sound3DActor::m3DManager
private

Definition at line 38 of file snd_Sound3DActor.h.

◆ mSoundArchivePlayer

SoundArchivePlayer* nw4r::snd::Sound3DActor::mSoundArchivePlayer
private

Definition at line 39 of file snd_Sound3DActor.h.

◆ mUserParam

ulong nw4r::snd::Sound3DActor::mUserParam
private

Definition at line 40 of file snd_Sound3DActor.h.

◆ mPosition

math::VEC3 nw4r::snd::Sound3DActor::mPosition
private

Definition at line 41 of file snd_Sound3DActor.h.

◆ mVelocity

math::VEC3 nw4r::snd::Sound3DActor::mVelocity
private

Definition at line 42 of file snd_Sound3DActor.h.

◆ mSkipVelocityUpdate

bool nw4r::snd::Sound3DActor::mSkipVelocityUpdate
private

Definition at line 43 of file snd_Sound3DActor.h.