![]() |
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
#include <SeqPlayer.h>
Inheritance diagram for nw4hbm::snd::detail::SeqPlayer:
Collaboration diagram for nw4hbm::snd::detail::SeqPlayer:Classes | |
| struct | ParserPlayerParam |
Public Types | |
| enum | OffsetType { OFFSET_TYPE_TICK = 0 , OFFSET_TYPE_MILLISEC } |
| enum | SetupResult { SETUP_SUCCESS = 0 , SETUP_ERR_CANNOT_ALLOCATE_TRACK , SETUP_ERR_UNKNOWN } |
| typedef struct nw4hbm::snd::detail::SeqPlayer::ParserPlayerParam | ParserPlayerParam |
| typedef enum nw4hbm::snd::detail::SeqPlayer::OffsetType | OffsetType |
| typedef enum nw4hbm::snd::detail::SeqPlayer::SetupResult | SetupResult |
Public Member Functions | |
| SeqPlayer () | |
| virtual | ~SeqPlayer () |
| virtual bool | Start () |
| virtual void | Stop () |
| virtual void | Pause (bool flag) |
| virtual bool | IsActive () const |
| virtual bool | IsPrepared () const |
| virtual bool | IsStarted () const |
| virtual bool | IsPause () const |
| virtual void | SetVolume (f32 volume) |
| virtual void | SetPitch (f32 pitch) |
| virtual void | SetPan (f32 pan) |
| virtual void | SetSurroundPan (f32 surroundPan) |
| virtual void | SetPan2 (f32 pan2) |
| virtual void | SetSurroundPan2 (f32 surroundPan2) |
| virtual void | SetLpfFreq (f32 lpfFreq) |
| virtual f32 | GetVolume () const |
| virtual f32 | GetPitch () const |
| virtual f32 | GetPan () const |
| virtual f32 | GetSurroundPan () const |
| virtual f32 | GetPan2 () const |
| virtual f32 | GetSurroundPan2 () const |
| virtual f32 | GetLpfFreq () const |
| virtual void | SetOutputLine (int lineFlag) |
| virtual void | SetMainOutVolume (f32 volume) |
| virtual void | SetMainSend (f32 send) |
| virtual void | SetFxSend (AuxBus bus, f32 send) |
| virtual void | SetRemoteOutVolume (int remoteIndex, f32 volume) |
| virtual void | SetRemoteSend (int remoteIndex, f32 send) |
| virtual void | SetRemoteFxSend (int remoteIndex, f32 send) |
| virtual int | GetOutputLine () const |
| virtual f32 | GetMainOutVolume () const |
| virtual f32 | GetMainSend () const |
| virtual f32 | GetFxSend (AuxBus bus) const |
| virtual f32 | GetRemoteOutVolume (int remoteIndex) const |
| virtual f32 | GetRemoteSend (int remoteIndex) const |
| virtual f32 | GetRemoteFxSend (int remoteIndex) const |
| virtual void | InvalidateData (const void *start, const void *end) |
| virtual void | InvalidateWaveData (const void *start, const void *end) |
| virtual void | ChannelCallback (Channel *channel) |
| void | InitParam (int voices, NoteOnCallback *callback) |
| SetupResult | Setup (SeqTrackAllocator *allocator, u32 allocTrackFlags, int voices, NoteOnCallback *callback) |
| void | SetSeqData (const void *base, s32 offset) |
| void | Skip (OffsetType type, int offset) |
| void | SetTempoRatio (f32 tempo) |
| void | SetChannelPriority (int priority) |
| void | SetReleasePriorityFix (bool flag) |
| void | SetLocalVariable (int trackNo, s16 value) |
| void | SetTrackVolume (u32 trackFlags, f32 volume) |
| void | SetTrackPitch (u32 trackFlags, f32 pitch) |
| SeqTrack * | GetPlayerTrack (int trackNo) |
| vs16 * | GetVariablePtr (int varNo) |
| void | Update () |
| Channel * | NoteOn (int bankNo, const NoteOnInfo ¬eOnInfo) |
| template<typename T > | |
| void | SetTrackParam (u32 trackFlags, void(SeqTrack::*setter)(T), T param) |
| f32 | GetPanRange () const |
| int | GetVoiceOutCount () const |
| ParserPlayerParam & | GetParserPlayerParam () |
Static Public Member Functions | |
| static void | SetGlobalVariable (int trackNo, s16 value) |
| static void | UpdateAllPlayers () |
| static void | StopAllPlayers () |
Public Attributes | |
| ut::LinkListNode | mPlayerLink |
Static Public Attributes | |
| static const int | LOCAL_VARIABLE_NUM = 16 |
| static const int | GLOBAL_VARIABLE_NUM = 16 |
| static const int | VARIABLE_NUM = LOCAL_VARIABLE_NUM + GLOBAL_VARIABLE_NUM |
| static const int | TRACK_NUM = 16 |
Private Member Functions | |
| void | CloseTrack (int trackNo) |
| void | SetPlayerTrack (int trackNo, SeqTrack *track) |
| void | FinishPlayer () |
| void | UpdateChannelParam () |
| int | UpdateTempoCounter () |
| int | ParseNextTick (bool doNoteOn) |
| void | UpdateTick (int msec) |
| void | SkipTick () |
Static Private Member Functions | |
| static void | InitGlobalVariable () |
Private Attributes | |
| bool | mHomeButtonMenuFlag |
| u8 | mActiveFlag |
| u8 | mPreparedFlag |
| u8 | mStartedFlag |
| u8 | mPauseFlag |
| bool | mSkipFlag |
| f32 | mExtVolume |
| f32 | mExtPan |
| f32 | mExtSurroundPan |
| f32 | mPanRange |
| f32 | mExtPan2 |
| f32 | mExtSurroundPan2 |
| f32 | mExtPitch |
| f32 | mExtLpfFreq |
| int | mOutputLineFlag |
| f32 | mMainOutVolume |
| f32 | mMainSend |
| f32 | mFxSend [AUX_BUS_NUM] |
| f32 | mRemoteOutVolume [WPAD_MAX_CONTROLLERS] |
| f32 | mRemoteSend [WPAD_MAX_CONTROLLERS] |
| f32 | mRemoteFxSend [WPAD_MAX_CONTROLLERS] |
| f32 | mTempoRatio |
| u16 | mTempoCounter |
| s32 | mVoiceOutCount |
| ParserPlayerParam | mParserParam |
| SeqTrackAllocator * | mSeqTrackAllocator |
| SeqTrack * | mTracks [TRACK_NUM] |
| vs16 | mLocalVariable [TRACK_NUM] |
| u32 | mTickCounter |
Static Private Attributes | |
| static const int | DEFAULT_TEMPO = 120 |
| static const int | DEFAULT_PRIORITY = 64 |
| static const int | DEFAULT_VARIABLE_VALUE = -1 |
| static const int | MAX_SKIP_TICK_PER_FRAME = 768 |
| static vs16 | mGlobalVariable [LOCAL_VARIABLE_NUM] |
| struct nw4hbm::snd::detail::SeqPlayer::ParserPlayerParam nw4hbm::snd::detail::SeqPlayer::ParserPlayerParam |
| nw4hbm::snd::detail::SeqPlayer::SeqPlayer | ( | ) |
|
virtual |
|
virtual |
|
private |
|
private |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
| SeqTrack * nw4hbm::snd::detail::SeqPlayer::GetPlayerTrack | ( | int | trackNo | ) |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
| vs16 * nw4hbm::snd::detail::SeqPlayer::GetVariablePtr | ( | int | varNo | ) |
|
inline |
|
inlinevirtual |
|
staticprivate |
| void nw4hbm::snd::detail::SeqPlayer::InitParam | ( | int | voices, |
| NoteOnCallback * | callback ) |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
| Channel * nw4hbm::snd::detail::SeqPlayer::NoteOn | ( | int | bankNo, |
| const NoteOnInfo & | noteOnInfo ) |
|
private |
|
virtual |
| void nw4hbm::snd::detail::SeqPlayer::SetChannelPriority | ( | int | priority | ) |
|
static |
| void nw4hbm::snd::detail::SeqPlayer::SetLocalVariable | ( | int | trackNo, |
| s16 | value ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
| void nw4hbm::snd::detail::SeqPlayer::SetReleasePriorityFix | ( | bool | flag | ) |
|
virtual |
|
virtual |
|
virtual |
| void nw4hbm::snd::detail::SeqPlayer::SetSeqData | ( | const void * | base, |
| s32 | offset ) |
|
virtual |
|
virtual |
| void nw4hbm::snd::detail::SeqPlayer::SetTempoRatio | ( | f32 | tempo | ) |
|
inline |
| SetupResult nw4hbm::snd::detail::SeqPlayer::Setup | ( | SeqTrackAllocator * | allocator, |
| u32 | allocTrackFlags, | ||
| int | voices, | ||
| NoteOnCallback * | callback ) |
|
virtual |
| void nw4hbm::snd::detail::SeqPlayer::Skip | ( | OffsetType | type, |
| int | offset ) |
|
private |
|
virtual |
|
virtual |
|
static |
| void nw4hbm::snd::detail::SeqPlayer::Update | ( | ) |
|
static |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| ut::LinkListNode nw4hbm::snd::detail::SeqPlayer::mPlayerLink |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |