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

Description

Definition at line 133 of file snd_BasicSound.h.

Classes

struct  AmbientInfo
 

Public Types

enum  PauseState {
  PAUSE_STATE_NORMAL ,
  PAUSE_STATE_PAUSING ,
  PAUSE_STATE_PAUSED ,
  PAUSE_STATE_UNPAUSING
}
 
typedef ut::LinkList< BasicSound, 0xf0 > PriorityLinkList
 
typedef ut::LinkList< BasicSound, 0xf8 > SoundPlayerPlayLinkList
 
typedef ut::LinkList< BasicSound, 0x100 > SoundPlayerPriorityLinkList
 
typedef ut::LinkList< BasicSound, 0x108 > ExtSoundPlayerPlayLinkList
 

Public Member Functions

 BasicSound (int priority, int ambientPriority)
 
virtual ut::detail::RuntimeTypeInfo const * GetRuntimeTypeInfo () const
 
virtual void Shutdown ()
 
virtual bool IsPrepared () const =0
 
virtual bool IsAttachedTempSpecialHandle ()=0
 
virtual void DetachTempSpecialHandle ()=0
 
virtual void InitParam ()
 
virtual BasicPlayerGetBasicPlayer ()=0
 
virtual BasicPlayer const & GetBasicPlayer () const =0
 
virtual void OnUpdatePlayerPriority ()
 
virtual void UpdateMoveValue ()
 
virtual void UpdateParam ()
 
void StartPrepared ()
 
void Update ()
 
void Pause (bool flag, int fadeFrames)
 
bool IsPause () const
 
void Stop (int fadeFrames)
 
void SetAutoStopCounter (int count)
 
void FadeIn (int fadeFrames)
 
bool GetStartedFlag () const
 
ulong GetId () const
 
PlayerHeapGetPlayerHeap ()
 
SoundPlayerGetSoundPlayer ()
 
int GetVoiceOutCount () const
 
int GetPriority () const
 
void SetPlayerPriority (int priority)
 
void SetInitialVolume (f32 volume)
 
void SetVolume (f32 volume, int frames)
 
void SetPitch (f32 pitch)
 
void SetPan (f32 pan)
 
void SetSurroundPan (f32 pan)
 
void SetLpfFreq (f32 freq)
 
void SetFxSend (AuxBus bus, f32 send)
 
void SetRemoteFilter (int filter)
 
void SetPanMode (PanMode mode)
 
void SetPanCurve (PanCurve curve)
 
void SetAmbientInfo (AmbientInfo const &ambientArgInfo)
 
void SetId (ulong id)
 
void SetOutputLineFlag (int flag)
 
void AttachPlayerHeap (PlayerHeap *heap)
 
void AttachSoundPlayer (SoundPlayer *player)
 
void AttachSoundActor (SoundActor *actor)
 
void AttachExternalSoundPlayer (ExternalSoundPlayer *extPlayer)
 
bool IsAttachedGeneralHandle ()
 
bool IsAttachedTempGeneralHandle ()
 
void DetachPlayerHeap (PlayerHeap *heap)
 
void DetachSoundPlayer (SoundPlayer *player)
 
void DetachSoundActor (SoundActor *actor)
 
void DetachExternalSoundPlayer (ExternalSoundPlayer *extPlayer)
 
void DetachGeneralHandle ()
 
void DetachTempGeneralHandle ()
 
int GetRemainingFadeFrames () const
 
int CalcCurrentPlayerPriority () const
 
void ClearAmbientArgUpdateCallback ()
 

Static Public Member Functions

static int GetAmbientPriority (AmbientInfo const &ambientInfo, ulong soundId)
 

Public Attributes

ut::LinkListNode mPriorityLink
 
ut::LinkListNode mSoundPlayerPlayLink
 
ut::LinkListNode mSoundPlayerPriorityLink
 
ut::LinkListNode mExtSoundPlayerPlayLink
 

Static Public Attributes

static ulong const INVALID_ID = -1
 
static int const PRIORITY_MAX = 127
 
static int const PRIORITY_MIN = 0
 
static ut::detail::RuntimeTypeInfo const typeInfo
 

Private Attributes

PlayerHeapmPlayerHeap
 
SoundHandlemGeneralHandle
 
SoundHandlemTempGeneralHandle
 
SoundPlayermSoundPlayer
 
SoundActormSoundActor
 
ExternalSoundPlayermExtSoundPlayer
 
AmbientInfo mAmbientInfo
 
SoundParam mAmbientParam
 
SoundActorParam mActorParam
 
MoveValue< f32, int > mFadeVolume
 
MoveValue< f32, int > mPauseFadeVolume
 
bool mStartFlag
 
bool mStartedFlag
 
bool mAutoStopFlag
 
bool mFadeOutFlag
 
PauseState mPauseState
 
bool mUnPauseFlag
 
s32 mAutoStopCounter
 
ulong mUpdateCounter
 
u8 mPriority
 
u8 mVoiceOutCount
 
u8 mBiquadFilterType
 
ulong mId
 
MoveValue< f32, int > mExtMoveVolume
 
f32 mInitVolume
 
f32 mExtPan
 
f32 mExtSurroundPan
 
f32 mExtPitch
 
f32 mLpfFreq
 
f32 mBiquadFilterValue
 
int mOutputLineFlag
 
f32 mMainOutVolume
 
f32 mMainSend
 
f32 mFxSend [AUX_BUS_NUM]
 
f32 mRemoteOutVolume [4]
 

Member Typedef Documentation

◆ PriorityLinkList

◆ SoundPlayerPlayLinkList

◆ SoundPlayerPriorityLinkList

◆ ExtSoundPlayerPlayLinkList

Member Enumeration Documentation

◆ PauseState

enum nw4r::snd::detail::BasicSound::PauseState

Definition at line 138 of file snd_BasicSound.h.

Constructor & Destructor Documentation

◆ ~BasicSound()

virtual nw4r::snd::detail::BasicSound::~BasicSound ( )
inlinevirtual

Definition at line 237 of file snd_BasicSound.h.

Member Function Documentation

◆ GetRuntimeTypeInfo()

virtual ut::detail::RuntimeTypeInfo const * nw4r::snd::detail::BasicSound::GetRuntimeTypeInfo ( ) const
inlinevirtual

Definition at line 233 of file snd_BasicSound.h.

◆ OnUpdatePlayerPriority()

virtual void nw4r::snd::detail::BasicSound::OnUpdatePlayerPriority ( )
inlinevirtual

Definition at line 245 of file snd_BasicSound.h.

◆ GetStartedFlag()

bool nw4r::snd::detail::BasicSound::GetStartedFlag ( ) const
inline

Definition at line 258 of file snd_BasicSound.h.

◆ GetId()

ulong nw4r::snd::detail::BasicSound::GetId ( ) const
inline

Definition at line 259 of file snd_BasicSound.h.

◆ GetPlayerHeap()

PlayerHeap * nw4r::snd::detail::BasicSound::GetPlayerHeap ( )
inline

Definition at line 260 of file snd_BasicSound.h.

◆ GetSoundPlayer()

SoundPlayer * nw4r::snd::detail::BasicSound::GetSoundPlayer ( )
inline

Definition at line 261 of file snd_BasicSound.h.

◆ GetPriority()

int nw4r::snd::detail::BasicSound::GetPriority ( ) const
inline

Definition at line 263 of file snd_BasicSound.h.

◆ CalcCurrentPlayerPriority()

int nw4r::snd::detail::BasicSound::CalcCurrentPlayerPriority ( ) const
inline

Definition at line 297 of file snd_BasicSound.h.

◆ ClearAmbientArgUpdateCallback()

void nw4r::snd::detail::BasicSound::ClearAmbientArgUpdateCallback ( )
inline

Definition at line 303 of file snd_BasicSound.h.

Member Data Documentation

◆ INVALID_ID

ulong const nw4r::snd::detail::BasicSound::INVALID_ID = -1
static

Definition at line 313 of file snd_BasicSound.h.

◆ PRIORITY_MAX

int const nw4r::snd::detail::BasicSound::PRIORITY_MAX = 127
static

Definition at line 314 of file snd_BasicSound.h.

◆ PRIORITY_MIN

int const nw4r::snd::detail::BasicSound::PRIORITY_MIN = 0
static

Definition at line 315 of file snd_BasicSound.h.

◆ typeInfo

ut::detail::RuntimeTypeInfo const nw4r::snd::detail::BasicSound::typeInfo
static

Definition at line 317 of file snd_BasicSound.h.

◆ mPlayerHeap

PlayerHeap* nw4r::snd::detail::BasicSound::mPlayerHeap
private

Definition at line 322 of file snd_BasicSound.h.

◆ mGeneralHandle

SoundHandle* nw4r::snd::detail::BasicSound::mGeneralHandle
private

Definition at line 323 of file snd_BasicSound.h.

◆ mTempGeneralHandle

SoundHandle* nw4r::snd::detail::BasicSound::mTempGeneralHandle
private

Definition at line 324 of file snd_BasicSound.h.

◆ mSoundPlayer

SoundPlayer* nw4r::snd::detail::BasicSound::mSoundPlayer
private

Definition at line 325 of file snd_BasicSound.h.

◆ mSoundActor

SoundActor* nw4r::snd::detail::BasicSound::mSoundActor
private

Definition at line 326 of file snd_BasicSound.h.

◆ mExtSoundPlayer

ExternalSoundPlayer* nw4r::snd::detail::BasicSound::mExtSoundPlayer
private

Definition at line 327 of file snd_BasicSound.h.

◆ mAmbientInfo

AmbientInfo nw4r::snd::detail::BasicSound::mAmbientInfo
private

Definition at line 328 of file snd_BasicSound.h.

◆ mAmbientParam

SoundParam nw4r::snd::detail::BasicSound::mAmbientParam
private

Definition at line 329 of file snd_BasicSound.h.

◆ mActorParam

SoundActorParam nw4r::snd::detail::BasicSound::mActorParam
private

Definition at line 330 of file snd_BasicSound.h.

◆ mFadeVolume

MoveValue<f32, int> nw4r::snd::detail::BasicSound::mFadeVolume
private

Definition at line 331 of file snd_BasicSound.h.

◆ mPauseFadeVolume

MoveValue<f32, int> nw4r::snd::detail::BasicSound::mPauseFadeVolume
private

Definition at line 332 of file snd_BasicSound.h.

◆ mStartFlag

bool nw4r::snd::detail::BasicSound::mStartFlag
private

Definition at line 333 of file snd_BasicSound.h.

◆ mStartedFlag

bool nw4r::snd::detail::BasicSound::mStartedFlag
private

Definition at line 334 of file snd_BasicSound.h.

◆ mAutoStopFlag

bool nw4r::snd::detail::BasicSound::mAutoStopFlag
private

Definition at line 335 of file snd_BasicSound.h.

◆ mFadeOutFlag

bool nw4r::snd::detail::BasicSound::mFadeOutFlag
private

Definition at line 336 of file snd_BasicSound.h.

◆ mPauseState

PauseState nw4r::snd::detail::BasicSound::mPauseState
private

Definition at line 337 of file snd_BasicSound.h.

◆ mUnPauseFlag

bool nw4r::snd::detail::BasicSound::mUnPauseFlag
private

Definition at line 338 of file snd_BasicSound.h.

◆ mAutoStopCounter

s32 nw4r::snd::detail::BasicSound::mAutoStopCounter
private

Definition at line 340 of file snd_BasicSound.h.

◆ mUpdateCounter

ulong nw4r::snd::detail::BasicSound::mUpdateCounter
private

Definition at line 341 of file snd_BasicSound.h.

◆ mPriority

u8 nw4r::snd::detail::BasicSound::mPriority
private

Definition at line 342 of file snd_BasicSound.h.

◆ mVoiceOutCount

u8 nw4r::snd::detail::BasicSound::mVoiceOutCount
private

Definition at line 343 of file snd_BasicSound.h.

◆ mBiquadFilterType

u8 nw4r::snd::detail::BasicSound::mBiquadFilterType
private

Definition at line 344 of file snd_BasicSound.h.

◆ mId

ulong nw4r::snd::detail::BasicSound::mId
private

Definition at line 346 of file snd_BasicSound.h.

◆ mExtMoveVolume

MoveValue<f32, int> nw4r::snd::detail::BasicSound::mExtMoveVolume
private

Definition at line 347 of file snd_BasicSound.h.

◆ mInitVolume

f32 nw4r::snd::detail::BasicSound::mInitVolume
private

Definition at line 348 of file snd_BasicSound.h.

◆ mExtPan

f32 nw4r::snd::detail::BasicSound::mExtPan
private

Definition at line 349 of file snd_BasicSound.h.

◆ mExtSurroundPan

f32 nw4r::snd::detail::BasicSound::mExtSurroundPan
private

Definition at line 350 of file snd_BasicSound.h.

◆ mExtPitch

f32 nw4r::snd::detail::BasicSound::mExtPitch
private

Definition at line 351 of file snd_BasicSound.h.

◆ mLpfFreq

f32 nw4r::snd::detail::BasicSound::mLpfFreq
private

Definition at line 352 of file snd_BasicSound.h.

◆ mBiquadFilterValue

f32 nw4r::snd::detail::BasicSound::mBiquadFilterValue
private

Definition at line 353 of file snd_BasicSound.h.

◆ mOutputLineFlag

int nw4r::snd::detail::BasicSound::mOutputLineFlag
private

Definition at line 354 of file snd_BasicSound.h.

◆ mMainOutVolume

f32 nw4r::snd::detail::BasicSound::mMainOutVolume
private

Definition at line 355 of file snd_BasicSound.h.

◆ mMainSend

f32 nw4r::snd::detail::BasicSound::mMainSend
private

Definition at line 356 of file snd_BasicSound.h.

◆ mFxSend

f32 nw4r::snd::detail::BasicSound::mFxSend[AUX_BUS_NUM]
private

Definition at line 357 of file snd_BasicSound.h.

◆ mRemoteOutVolume

f32 nw4r::snd::detail::BasicSound::mRemoteOutVolume[4]
private

Definition at line 358 of file snd_BasicSound.h.

◆ mPriorityLink

ut::LinkListNode nw4r::snd::detail::BasicSound::mPriorityLink

Definition at line 360 of file snd_BasicSound.h.

◆ mSoundPlayerPlayLink

ut::LinkListNode nw4r::snd::detail::BasicSound::mSoundPlayerPlayLink

Definition at line 361 of file snd_BasicSound.h.

◆ mSoundPlayerPriorityLink

ut::LinkListNode nw4r::snd::detail::BasicSound::mSoundPlayerPriorityLink

Definition at line 362 of file snd_BasicSound.h.

◆ mExtSoundPlayerPlayLink

ut::LinkListNode nw4r::snd::detail::BasicSound::mExtSoundPlayerPlayLink

Definition at line 363 of file snd_BasicSound.h.