New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
GameAudio::AudioObjctCmnEmy Class Reference

#include <GameAudio.h>

Inherits SndObjctCmnEmy.

Public Member Functions

 AudioObjctCmnEmy (nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void startSound (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN) override
void startSound (const char *label, const sead::Vector3f &pos, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void startSound (const char *label, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN) override
void startSound (const char *label, const sead::Vector3f &pos, s16 seq_var, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void holdSound (const char *label, s32 handle_id, const sead::Vector3f &pos, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
void holdSound (const char *label, s32 handle_id, const sead::Vector3f &pos, s16 seq_var, nw::snd::OutputLine line_flag=nw::snd::OUTPUT_LINE_MAIN)
Public Member Functions inherited from SndObjctCmnEmy
 SndObjctCmnEmy (nw::snd::OutputLine line_flag)
void startSound (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine line_flag) override
void startSound (const char *label, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag) override
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, nw::snd::OutputLine line_flag)
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag)
Public Member Functions inherited from NMSndObjectCmn
 NMSndObjectCmn (nw::snd::OutputLine line_flag)
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, nw::snd::OutputLine line_flag)
void holdSound (const char *label, s32 handle_id, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag)
Public Member Functions inherited from NMSndObjectBase
 NMSndObjectBase (ObjType type, sead::AudioPlayer *player)
 ~NMSndObjectBase () override
virtual u8 vf34 (const char *label, s32 actor_player_id)
void setOutputLine (nw::snd::OutputLine line_flag)
Public Member Functions inherited from nw::snd::SoundActor
 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
void ForEachSoundRef (Function &function, bool reverse=false)
Function ForEachSound (Function function, bool reverse=false)
ActorPlayerdetail_GetActorPlayer (int actorPlayerId)
const internal::SoundActorParamdetail_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)

Additional Inherited Members

Public Types inherited from NMSndObjectBase
enum  ObjType { cObjType_Max = 3 }
Static Public Attributes inherited from NMSndObjectCmn
static const u32 cPlayableSoundNum = 12
static const u32 cHandleNum = cPlayableSoundNum + cExtraHandleNum
Static Public Attributes inherited from NMSndObjectBase
static const u32 cExtraHandleNum = 2
Static Public Attributes inherited from nw::snd::SoundActor
static const int ACTOR_PLAYER_COUNT
Protected Member Functions inherited from NMSndObjectCmn
nw::snd::SoundHandlestartSound_ (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine line_flag)
nw::snd::SoundHandlestartSound_ (const char *label, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag)
nw::snd::SoundHandleholdSound_ (const char *label, s32 handle_id, const sead::Vector2f &pos, nw::snd::OutputLine line_flag)
nw::snd::SoundHandleholdSound_ (const char *label, s32 handle_id, const sead::Vector2f &pos, s16 seq_var, nw::snd::OutputLine line_flag)
Protected Member Functions inherited from nw::snd::SoundActor
virtual SoundStartable::StartResult SetupSound (SoundHandle *handle, u32 soundId, const SoundStartable::StartInfo *startInfo, void *setupArg)
Protected Attributes inherited from NMSndObjectCmn
SoundHandlePrm mSoundHandlePrm [cHandleNum]
Protected Attributes inherited from NMSndObjectBase
u32 mHandleNum
nw::snd::OutputLine mOutputLine
Snd2DCalcmSnd2DCalc
ObjType mType

Constructor & Destructor Documentation

◆ AudioObjctCmnEmy()

GameAudio::AudioObjctCmnEmy::AudioObjctCmnEmy ( nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN)
inline

Member Function Documentation

◆ startSound() [1/4]

void GameAudio::AudioObjctCmnEmy::startSound ( const char * label,
const sead::Vector2f & pos,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inlineoverridevirtual

Reimplemented from NMSndObjectCmn.

◆ startSound() [2/4]

void GameAudio::AudioObjctCmnEmy::startSound ( const char * label,
const sead::Vector3f & pos,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline

◆ startSound() [3/4]

void GameAudio::AudioObjctCmnEmy::startSound ( const char * label,
const sead::Vector2f & pos,
s16 seq_var,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inlineoverridevirtual

Reimplemented from NMSndObjectCmn.

◆ startSound() [4/4]

void GameAudio::AudioObjctCmnEmy::startSound ( const char * label,
const sead::Vector3f & pos,
s16 seq_var,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline

◆ holdSound() [1/4]

void GameAudio::AudioObjctCmnEmy::holdSound ( const char * label,
s32 handle_id,
const sead::Vector2f & pos,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline

◆ holdSound() [2/4]

void GameAudio::AudioObjctCmnEmy::holdSound ( const char * label,
s32 handle_id,
const sead::Vector3f & pos,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline

◆ holdSound() [3/4]

void GameAudio::AudioObjctCmnEmy::holdSound ( const char * label,
s32 handle_id,
const sead::Vector2f & pos,
s16 seq_var,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline

◆ holdSound() [4/4]

void GameAudio::AudioObjctCmnEmy::holdSound ( const char * label,
s32 handle_id,
const sead::Vector3f & pos,
s16 seq_var,
nw::snd::OutputLine line_flag = nw::snd::OUTPUT_LINE_MAIN )
inline