NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::detail::AxVoiceParamBlock Class Reference

Description

Definition at line 27 of file snd_AxVoice.h.

Public Member Functions

 operator AXVPB * ()
 
bool IsAvailable () const
 
bool IsRun () const
 
ulong GetLoopAddress () const
 
ulong GetEndAddress () const
 
ulong GetCurrentAddress () const
 
bool IsLpfEnable () const
 
bool IsBiquadEnable () const
 
bool IsRmtIirEnable () const
 
void SetVoiceAddr (AXPBADDR const &addr)
 
void SetVoicePriority (ulong priority)
 
void SetVoiceSrcType (ulong type)
 
void SetVoiceStateRun ()
 
void SetVoiceStateStop ()
 
void SetVoiceType (u16 type)
 
void SetVoiceMix (AXPBMIX const &mix, bool immediatelySync)
 
void SetVoiceVe (u16 volume, u16 initVolume)
 
void SetVoiceLoop (u16 loop)
 
void SetVoiceLoopAddr (ulong addr)
 
void SetVoiceEndAddr (ulong addr)
 
void SetVoiceAdpcm (AXPBADPCM const &adpcm)
 
void SetVoiceSrc (AXPBSRC const &src)
 
void SetVoiceSrcRatio (f32 ratio)
 
void SetVoiceAdpcmLoop (AXPBADPCMLOOP const &adpcmloop)
 
void SetVoiceLpf (AXPBLPF const &lpf)
 
void SetVoiceLpfCoefs (u16 a0, u16 b0)
 
void SetVoiceBiquad (AXPBBIQUAD const &biquad)
 
void SetVoiceBiquadCoefs (u16 b0, u16 b1, u16 b2, u16 a1, u16 a2)
 
void SetVoiceRmtIIR (__AXPBRMTIIR const &iir)
 
void SetVoiceRmtOn (u16 on)
 
void SetVoiceRmtMix (_AXPBRMTMIX const &iir)
 
void SetVoiceRmtIIRCoefs (u16 type,...)
 
void Set (AXVPB *vpb)
 
void Clear ()
 
void UpdateDelta ()
 
void Sync ()
 

Static Public Attributes

static u16 const DEFAULT_VOLUME = AX_MAX_VOLUME
 

Private Attributes

AXVPBmVpb
 
ulong mSync
 
AXPBVE volatile mPrevVeSetting
 
bool mFirstVeUpdateFlag
 
u16 mVolume
 

Member Function Documentation

◆ operator AXVPB *()

nw4r::snd::detail::AxVoiceParamBlock::operator AXVPB * ( )
inline

Definition at line 35 of file snd_AxVoice.h.

◆ IsAvailable()

bool nw4r::snd::detail::AxVoiceParamBlock::IsAvailable ( ) const
inline

Definition at line 38 of file snd_AxVoice.h.

◆ IsRun()

bool nw4r::snd::detail::AxVoiceParamBlock::IsRun ( ) const
inline

Definition at line 39 of file snd_AxVoice.h.

◆ GetLoopAddress()

ulong nw4r::snd::detail::AxVoiceParamBlock::GetLoopAddress ( ) const
inline

Definition at line 43 of file snd_AxVoice.h.

◆ GetEndAddress()

ulong nw4r::snd::detail::AxVoiceParamBlock::GetEndAddress ( ) const
inline

Definition at line 51 of file snd_AxVoice.h.

◆ GetCurrentAddress()

ulong nw4r::snd::detail::AxVoiceParamBlock::GetCurrentAddress ( ) const
inline

Definition at line 59 of file snd_AxVoice.h.

◆ IsLpfEnable()

bool nw4r::snd::detail::AxVoiceParamBlock::IsLpfEnable ( ) const
inline

Definition at line 67 of file snd_AxVoice.h.

◆ IsBiquadEnable()

bool nw4r::snd::detail::AxVoiceParamBlock::IsBiquadEnable ( ) const
inline

Definition at line 72 of file snd_AxVoice.h.

◆ SetVoiceAddr()

void nw4r::snd::detail::AxVoiceParamBlock::SetVoiceAddr ( AXPBADDR const & addr)
inline

Definition at line 78 of file snd_AxVoice.h.

◆ SetVoicePriority()

void nw4r::snd::detail::AxVoiceParamBlock::SetVoicePriority ( ulong priority)
inline

Definition at line 87 of file snd_AxVoice.h.

◆ SetVoiceStateRun()

void nw4r::snd::detail::AxVoiceParamBlock::SetVoiceStateRun ( )
inline

Definition at line 95 of file snd_AxVoice.h.

◆ SetVoiceStateStop()

void nw4r::snd::detail::AxVoiceParamBlock::SetVoiceStateStop ( )
inline

Definition at line 102 of file snd_AxVoice.h.

Member Data Documentation

◆ DEFAULT_VOLUME

u16 const nw4r::snd::detail::AxVoiceParamBlock::DEFAULT_VOLUME = AX_MAX_VOLUME
static

Definition at line 136 of file snd_AxVoice.h.

◆ mVpb

AXVPB* nw4r::snd::detail::AxVoiceParamBlock::mVpb
private

Definition at line 140 of file snd_AxVoice.h.

◆ mSync

ulong nw4r::snd::detail::AxVoiceParamBlock::mSync
private

Definition at line 141 of file snd_AxVoice.h.

◆ mPrevVeSetting

AXPBVE volatile nw4r::snd::detail::AxVoiceParamBlock::mPrevVeSetting
private

Definition at line 142 of file snd_AxVoice.h.

◆ mFirstVeUpdateFlag

bool nw4r::snd::detail::AxVoiceParamBlock::mFirstVeUpdateFlag
private

Definition at line 143 of file snd_AxVoice.h.

◆ mVolume

u16 nw4r::snd::detail::AxVoiceParamBlock::mVolume
private

Definition at line 145 of file snd_AxVoice.h.