NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
Definition at line 47 of file snd_SeqPlayer.h.
Classes | |
struct | ParserPlayerParam |
Public Types | |
enum | OffsetType { OFFSET_TYPE_TICK , OFFSET_TYPE_MILLISEC } |
enum | SetupResult { SETUP_SUCCESS , SETUP_ERR_CANNOT_ALLOCATE_TRACK , SETUP_ERR_UNKNOWN } |
typedef void | SeqUserprocCallback(u16 procId, SeqUserprocCallbackParam *param, void *callbackData) |
![]() | |
typedef ut::LinkList< DisposeCallback, 0x00 > | LinkList |
![]() | |
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 | ChannelCallback (Channel *channel ATTR_UNUSED) |
virtual void | OnUpdateFrameSoundThread () |
virtual void | OnShutdownSoundThread () |
SetupResult | Setup (SeqTrackAllocator *trackAllocator, ulong allocTracks, int voiceOutCount, NoteOnCallback *callback) |
void | Update () |
void | Skip (OffsetType offsetType, int offset) |
void | Shutdown () |
bool | IsReleasePriorityFix () const |
f32 | GetPanRange () const |
int | GetVoiceOutCount () const |
ParserPlayerParam & | GetParserPlayerParam () |
SeqTrack * | GetPlayerTrack (int trackNo) |
s16 volatile * | GetVariablePtr (int varNo) |
s16 | GetLocalVariable (int varNo) const |
void | SetLocalVariable (int varNo, s16 value) |
void | SetTempoRatio (f32 tempo) |
void | SetReleasePriorityFix (bool fix) |
void | SetChannelPriority (int priority) |
void | SetSeqUserprocCallback (SeqUserprocCallback *callback, void *arg) |
void | SetPlayerTrack (int trackNo, SeqTrack *track) |
f32 | CalcTickPerMsec () const |
f32 | CalcTickPerMinute () const |
ulong | GetTickCounter () const |
void | SetSeqData (void const *seqBase, s32 seqOffset) |
void | CallSeqUserprocCallback (u16 procId, SeqTrack *track) |
Channel * | NoteOn (int bankNo, NoteOnInfo const ¬eOnInfo) |
void | SetTrackMute (ulong trackFlags, SeqMute mute) |
void | SetTrackSilence (ulong trackFlags, bool silence, int fadeFrames) |
void | SetTrackVolume (ulong trackFlags, f32 volume) |
![]() | |
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 ¶m) |
void | SetId (ulong id) |
![]() | |
virtual void | OnUpdateVoiceSoundThread () |
Static Public Member Functions | |
static void | SetGlobalVariable (int varNo, s16 value) |
static void | InitSeqPlayer () |
Static Public Attributes | |
static int const | MAX_SKIP_TICK_PER_FRAME = 768 |
static int const | DEFAULT_TEMPO = 120 |
static int const | DEFAULT_TIMEBASE = 48 |
static int const | VARIABLE_DEFAULT_VALUE = -1 |
static int const | TRACK_NUM_PER_PLAYER = 16 |
static int const | GLOBAL_VARIABLE_NUM = 16 |
static int const | PLAYER_VARIABLE_NUM = 16 |
static const int | TRACK_NUM = 16 |
Private Member Functions | |
void | InitParam (int voiceOutCount, NoteOnCallback *callback) |
void | UpdateChannelParam () |
void | CloseTrack (int trackNo) |
void | FinishPlayer () |
int | ParseNextTick (bool doNoteOn) |
void | UpdateTick (int msec) |
void | SkipTick () |
template<typename T> | |
void | SetTrackParam (ulong trackFlags, void(SeqTrack::*pSetter)(T), T param) |
template<typename T, typename U> | |
void | SetTrackParam (ulong trackFlags, void(SeqTrack::*pSetter)(T, U), T param, U param2) |
Private Attributes | |
bool | mActiveFlag |
bool | mStartedFlag |
bool | mPauseFlag |
bool | mReleasePriorityFixFlag |
f32 | mPanRange |
f32 | mTempoRatio |
f32 | mTickFraction |
ulong | mSkipTickCounter |
f32 | mSkipTimeCounter |
s32 | mVoiceOutCount |
ParserPlayerParam | mParserParam |
SeqTrackAllocator * | mSeqTrackAllocator |
SeqUserprocCallback * | mSeqUserprocCallback |
void * | mSeqUserprocCallbackArg |
SeqTrack * | mTracks [TRACK_NUM_PER_PLAYER] |
s16 volatile | mLocalVariable [PLAYER_VARIABLE_NUM] |
ulong | mTickCounter |
Static Private Attributes | |
static s16 | mGlobalVariable [GLOBAL_VARIABLE_NUM] |
Additional Inherited Members | |
![]() | |
ut::LinkListNode | mDisposeLink |
typedef void nw4r::snd::detail::SeqPlayer::SeqUserprocCallback(u16 procId, SeqUserprocCallbackParam *param, void *callbackData) |
Definition at line 86 of file snd_SeqPlayer.h.
enum nw4r::snd::detail::SeqPlayer::OffsetType |
Definition at line 54 of file snd_SeqPlayer.h.
enum nw4r::snd::detail::SeqPlayer::SetupResult |
Definition at line 61 of file snd_SeqPlayer.h.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
virtual |
Implements nw4r::snd::detail::BasicPlayer.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 101 of file snd_SeqPlayer.h.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 102 of file snd_SeqPlayer.h.
|
inlinevirtual |
Implements nw4r::snd::detail::BasicPlayer.
Definition at line 103 of file snd_SeqPlayer.h.
|
virtual |
Implements nw4r::snd::detail::DisposeCallback.
|
inlinevirtual |
Implements nw4r::snd::detail::DisposeCallback.
Definition at line 107 of file snd_SeqPlayer.h.
|
inlinevirtual |
Definition at line 113 of file snd_SeqPlayer.h.
|
inlinevirtual |
Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.
Definition at line 116 of file snd_SeqPlayer.h.
|
inlinevirtual |
Reimplemented from nw4r::snd::detail::SoundThread::PlayerCallback.
Definition at line 117 of file snd_SeqPlayer.h.
|
inline |
Definition at line 126 of file snd_SeqPlayer.h.
|
inline |
Definition at line 127 of file snd_SeqPlayer.h.
|
inline |
Definition at line 128 of file snd_SeqPlayer.h.
|
inline |
Definition at line 129 of file snd_SeqPlayer.h.
|
inline |
Definition at line 143 of file snd_SeqPlayer.h.
|
inline |
Definition at line 147 of file snd_SeqPlayer.h.
|
inline |
Definition at line 152 of file snd_SeqPlayer.h.
|
inlineprivate |
Definition at line 180 of file snd_SeqPlayer.h.
|
inlineprivate |
Definition at line 197 of file snd_SeqPlayer.h.
|
static |
Definition at line 215 of file snd_SeqPlayer.h.
|
static |
Definition at line 216 of file snd_SeqPlayer.h.
|
static |
Definition at line 217 of file snd_SeqPlayer.h.
|
static |
Definition at line 218 of file snd_SeqPlayer.h.
|
static |
Definition at line 219 of file snd_SeqPlayer.h.
|
static |
Definition at line 220 of file snd_SeqPlayer.h.
|
static |
Definition at line 221 of file snd_SeqPlayer.h.
|
static |
Definition at line 223 of file snd_SeqPlayer.h.
|
staticprivate |
Definition at line 226 of file snd_SeqPlayer.h.
|
private |
Definition at line 233 of file snd_SeqPlayer.h.
|
private |
Definition at line 234 of file snd_SeqPlayer.h.
|
private |
Definition at line 235 of file snd_SeqPlayer.h.
|
private |
Definition at line 236 of file snd_SeqPlayer.h.
|
private |
Definition at line 237 of file snd_SeqPlayer.h.
|
private |
Definition at line 238 of file snd_SeqPlayer.h.
|
private |
Definition at line 239 of file snd_SeqPlayer.h.
|
private |
Definition at line 240 of file snd_SeqPlayer.h.
|
private |
Definition at line 241 of file snd_SeqPlayer.h.
|
private |
Definition at line 242 of file snd_SeqPlayer.h.
|
private |
Definition at line 243 of file snd_SeqPlayer.h.
|
private |
Definition at line 244 of file snd_SeqPlayer.h.
|
private |
Definition at line 245 of file snd_SeqPlayer.h.
|
private |
Definition at line 246 of file snd_SeqPlayer.h.
|
private |
Definition at line 247 of file snd_SeqPlayer.h.
|
private |
Definition at line 248 of file snd_SeqPlayer.h.
|
private |
Definition at line 249 of file snd_SeqPlayer.h.