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

Description

Definition at line 33 of file snd_WsdPlayer.h.

Classes

class  WsdCallback
 

Public Types

enum  StartOffsetType {
  START_OFFSET_TYPE_SAMPLE ,
  START_OFFSET_TYPE_MILLISEC
}
 
- Public Types inherited from nw4r::snd::detail::DisposeCallback
typedef ut::LinkList< DisposeCallback, 0x00 > LinkList
 
- Public Types inherited from nw4r::snd::detail::SoundThread::PlayerCallback
typedef ut::LinkList< PlayerCallback, 0x00 > LinkList
 

Public Member Functions

virtual bool Start ()
 
virtual void Stop ()
 
virtual void Pause (bool flag)
 
virtual bool IsActive () const
 
virtual bool IsStarted () const
 
virtual bool IsPause () const
 
virtual void InvalidateData (void const *start, void const *end)
 
virtual void InvalidateWaveData (void const *, void const *)
 
virtual void OnUpdateFrameSoundThread ()
 
virtual void OnShutdownSoundThread ()
 
bool Prepare (void const *waveSoundBase, int index, StartOffsetType startOffsetType, int startOffset, int voiceOutCount, WsdCallback const *callback, ulong callbackData)
 
f32 GetPanRange () const
 
int GetVoiceOutCount () const
 
int GetChannelPriority () const
 
void const * GetWsdDataAddress () const
 
void SetReleasePriorityFix (bool flag)
 
void SetChannelPriority (int priority)
 
bool IsChannelActive () const
 
bool ReadWsdDataInfo (WsdDataInfo *) const
 
ulong GetPlaySamplePosition () const
 
- Public Member Functions inherited from nw4r::snd::detail::BasicPlayer
void InitParam ()
 
void SetRemoteOutVolume (int remote, f32 volume)
 
f32 GetRemoteOutVolume (int remote) const
 
f32 GetVolume () const
 
f32 GetPitch () const
 
f32 GetPan () const
 
f32 GetSurroundPan () const
 
f32 GetLpfFreq () const
 
f32 GetBiquadValue () const
 
int GetBiquadType () const
 
int GetRemoteFilter () const
 
int GetOutputLine () const
 
f32 GetMainOutVolume () const
 
f32 GetMainSend () const
 
PanMode GetPanMode () const
 
PanCurve GetPanCurve () const
 
f32 GetFxSend (AuxBus bus) const
 
VoiceOutParam const & GetVoiceOutParam (int index) const
 
ulong GetId () const
 
void SetVolume (f32 volume)
 
void SetPitch (f32 pitch)
 
void SetPan (f32 pan)
 
void SetSurroundPan (f32 surroundPan)
 
void SetLpfFreq (f32 lpfFreq)
 
void SetBiquadFilter (int type, f32 value)
 
void SetRemoteFilter (int filter)
 
void SetOutputLine (int lineFlag)
 
void SetMainOutVolume (f32 volume)
 
void SetMainSend (f32 send)
 
void SetPanMode (PanMode panMode)
 
void SetPanCurve (PanCurve panCurve)
 
void SetFxSend (AuxBus bus, f32 send)
 
void SetVoiceOutParam (int index, VoiceOutParam const &param)
 
void SetId (ulong id)
 
- Public Member Functions inherited from nw4r::snd::detail::SoundThread::PlayerCallback
virtual void OnUpdateVoiceSoundThread ()
 

Static Public Attributes

static int const DEFAULT_PRIORITY = 64
 
static int const MUTE_RELEASE_VALUE
 
static int const PAUSE_RELEASE_VALUE
 

Private Member Functions

void InitParam (int voiceOutCount, WsdCallback const *callback, ulong callbackData)
 
void Update ()
 
bool StartChannel (WsdCallback const *callback, ulong callbackData)
 
void UpdateChannel ()
 
void CloseChannel ()
 
void FinishPlayer ()
 

Static Private Member Functions

static void ChannelCallbackFunc (Channel *dropChannel, Channel::ChannelCallbackStatus status, ulong userData)
 

Private Attributes

bool mActiveFlag
 
bool mStartedFlag
 
bool mPauseFlag
 
bool mWavePlayFlag
 
bool mReleasePriorityFixFlag
 
f32 mPanRange
 
int mVoiceOutCount
 
u8 mPriority
 
WsdCallback const * mCallback
 
ulong mCallbackData
 
void const * mWsdData
 
int mWsdIndex
 
StartOffsetType mStartOffsetType
 
int mStartOffset
 
LfoParam mLfoParam
 
WaveSoundInfo mWaveSoundInfo
 
ChannelmChannel
 

Additional Inherited Members

- Public Attributes inherited from nw4r::snd::detail::DisposeCallback
ut::LinkListNode mDisposeLink
 

Member Enumeration Documentation

◆ StartOffsetType

enum nw4r::snd::detail::WsdPlayer::StartOffsetType

Definition at line 40 of file snd_WsdPlayer.h.

Member Function Documentation

◆ Start()

virtual bool nw4r::snd::detail::WsdPlayer::Start ( )
virtual

◆ Stop()

virtual void nw4r::snd::detail::WsdPlayer::Stop ( )
virtual

◆ Pause()

virtual void nw4r::snd::detail::WsdPlayer::Pause ( bool flag)
virtual

◆ IsActive()

virtual bool nw4r::snd::detail::WsdPlayer::IsActive ( ) const
inlinevirtual

Implements nw4r::snd::detail::BasicPlayer.

Definition at line 80 of file snd_WsdPlayer.h.

◆ IsStarted()

virtual bool nw4r::snd::detail::WsdPlayer::IsStarted ( ) const
inlinevirtual

Implements nw4r::snd::detail::BasicPlayer.

Definition at line 81 of file snd_WsdPlayer.h.

◆ IsPause()

virtual bool nw4r::snd::detail::WsdPlayer::IsPause ( ) const
inlinevirtual

Implements nw4r::snd::detail::BasicPlayer.

Definition at line 82 of file snd_WsdPlayer.h.

◆ InvalidateData()

virtual void nw4r::snd::detail::WsdPlayer::InvalidateData ( void const * start,
void const * end )
virtual

◆ InvalidateWaveData()

virtual void nw4r::snd::detail::WsdPlayer::InvalidateWaveData ( void const * ,
void const *  )
inlinevirtual

Implements nw4r::snd::detail::DisposeCallback.

Definition at line 86 of file snd_WsdPlayer.h.

◆ OnUpdateFrameSoundThread()

virtual void nw4r::snd::detail::WsdPlayer::OnUpdateFrameSoundThread ( )
inlinevirtual

Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.

Definition at line 89 of file snd_WsdPlayer.h.

◆ OnShutdownSoundThread()

virtual void nw4r::snd::detail::WsdPlayer::OnShutdownSoundThread ( )
inlinevirtual

Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.

Definition at line 90 of file snd_WsdPlayer.h.

◆ GetPanRange()

f32 nw4r::snd::detail::WsdPlayer::GetPanRange ( ) const
inline

Definition at line 98 of file snd_WsdPlayer.h.

◆ GetVoiceOutCount()

int nw4r::snd::detail::WsdPlayer::GetVoiceOutCount ( ) const
inline

Definition at line 99 of file snd_WsdPlayer.h.

◆ GetChannelPriority()

int nw4r::snd::detail::WsdPlayer::GetChannelPriority ( ) const
inline

Definition at line 100 of file snd_WsdPlayer.h.

◆ GetWsdDataAddress()

void const * nw4r::snd::detail::WsdPlayer::GetWsdDataAddress ( ) const
inline

Definition at line 101 of file snd_WsdPlayer.h.

◆ IsChannelActive()

bool nw4r::snd::detail::WsdPlayer::IsChannelActive ( ) const
inline

Definition at line 106 of file snd_WsdPlayer.h.

Member Data Documentation

◆ DEFAULT_PRIORITY

int const nw4r::snd::detail::WsdPlayer::DEFAULT_PRIORITY = 64
static

Definition at line 131 of file snd_WsdPlayer.h.

◆ MUTE_RELEASE_VALUE

int const nw4r::snd::detail::WsdPlayer::MUTE_RELEASE_VALUE
static

Definition at line 132 of file snd_WsdPlayer.h.

◆ PAUSE_RELEASE_VALUE

int const nw4r::snd::detail::WsdPlayer::PAUSE_RELEASE_VALUE
static

Definition at line 133 of file snd_WsdPlayer.h.

◆ mActiveFlag

bool nw4r::snd::detail::WsdPlayer::mActiveFlag
private

Definition at line 140 of file snd_WsdPlayer.h.

◆ mStartedFlag

bool nw4r::snd::detail::WsdPlayer::mStartedFlag
private

Definition at line 141 of file snd_WsdPlayer.h.

◆ mPauseFlag

bool nw4r::snd::detail::WsdPlayer::mPauseFlag
private

Definition at line 142 of file snd_WsdPlayer.h.

◆ mWavePlayFlag

bool nw4r::snd::detail::WsdPlayer::mWavePlayFlag
private

Definition at line 143 of file snd_WsdPlayer.h.

◆ mReleasePriorityFixFlag

bool nw4r::snd::detail::WsdPlayer::mReleasePriorityFixFlag
private

Definition at line 144 of file snd_WsdPlayer.h.

◆ mPanRange

f32 nw4r::snd::detail::WsdPlayer::mPanRange
private

Definition at line 146 of file snd_WsdPlayer.h.

◆ mVoiceOutCount

int nw4r::snd::detail::WsdPlayer::mVoiceOutCount
private

Definition at line 147 of file snd_WsdPlayer.h.

◆ mPriority

u8 nw4r::snd::detail::WsdPlayer::mPriority
private

Definition at line 148 of file snd_WsdPlayer.h.

◆ mCallback

WsdCallback const* nw4r::snd::detail::WsdPlayer::mCallback
private

Definition at line 150 of file snd_WsdPlayer.h.

◆ mCallbackData

ulong nw4r::snd::detail::WsdPlayer::mCallbackData
private

Definition at line 151 of file snd_WsdPlayer.h.

◆ mWsdData

void const* nw4r::snd::detail::WsdPlayer::mWsdData
private

Definition at line 152 of file snd_WsdPlayer.h.

◆ mWsdIndex

int nw4r::snd::detail::WsdPlayer::mWsdIndex
private

Definition at line 153 of file snd_WsdPlayer.h.

◆ mStartOffsetType

StartOffsetType nw4r::snd::detail::WsdPlayer::mStartOffsetType
private

Definition at line 154 of file snd_WsdPlayer.h.

◆ mStartOffset

int nw4r::snd::detail::WsdPlayer::mStartOffset
private

Definition at line 155 of file snd_WsdPlayer.h.

◆ mLfoParam

LfoParam nw4r::snd::detail::WsdPlayer::mLfoParam
private

Definition at line 156 of file snd_WsdPlayer.h.

◆ mWaveSoundInfo

WaveSoundInfo nw4r::snd::detail::WsdPlayer::mWaveSoundInfo
private

Definition at line 157 of file snd_WsdPlayer.h.

◆ mChannel

Channel* nw4r::snd::detail::WsdPlayer::mChannel
private

Definition at line 158 of file snd_WsdPlayer.h.