resonance 1.0.1
Loading...
Searching...
No Matches
GenericSequencer Class Referenceabstract

Base of the template that dispatches a range of timed messages against a clock. More...

#include <genericsequencer.h>

Inheritance diagram for GenericSequencer:
Collaboration diagram for GenericSequencer:

Public Member Functions

 GenericSequencer ()
 Prepare a sequencer before any post.
virtual void Dispatch ()=0
 Send the message at the cursor and schedule the next one.
virtual ~GenericSequencer ()
 Release the sequencer.
void Withdraw ()
 Withdraw every command queued under the handle.

Protected Types

enum  { kUnallocatedCommand = -2 }

Protected Attributes

Sch::CmdID mCmdId
SequencerCmd * mCommand
Sch::TickClock * mClock
Sch::Tick mStartTick
Sch::Tick mOffset
MsgSink * mSink

Detailed Description

Base of the template that dispatches a range of timed messages against a clock.

Its RTTI descriptor is at 0x0086f708. It has no base list. It is the base the one Sequencer instantiation in the image derives from at offset 0.

Its shape comes from the instantiation's table at 0x007cc7e8, which runs three entries: the type function, Dispatch(), and the destructor. The destructor is therefore declared second, which MultiMusePlayer's destructor confirms by releasing its sequencer through slot 2 rather than slot 1.

The base is 0x1c bytes. Sequencer adds its cursor, the tick of the next message, and its range above that, which the 0x2c-byte allocations in MultiMusePlayer::Start() and BarSequencer::Tick() measure. The member order is the recovered offset order.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
kUnallocatedCommand 

Constructor & Destructor Documentation

◆ GenericSequencer()

GenericSequencer::GenericSequencer ( )
inline

Prepare a sequencer before any post.

Inline, and expanded into both allocations. The handle starts unallocated, the command absent, the start tick at kTickInfinity, and the offset at zero.

◆ ~GenericSequencer()

virtual GenericSequencer::~GenericSequencer ( )
inlinevirtual

Release the sequencer.

Slot 2. The one recovered body is the instantiation's at 0x00100df8.

Member Function Documentation

◆ Dispatch()

virtual void GenericSequencer::Dispatch ( )
pure virtual

Send the message at the cursor and schedule the next one.

Slot 1, pure. SequencerCmd::Execute() runs it. The title is inferred.

Implemented in Sequencer< T >, and Sequencer< const TickObj< MuseMsg * > * >.

◆ Withdraw()

void GenericSequencer::Withdraw ( )
inline

Withdraw every command queued under the handle.

Inline. The out-of-line copy at 0x001aa418 sits in the MultiMusePlayer unit, and the instantiation's destructor expands the body. The title is inferred.

Ghidra address:
NTSC-U/C: 0x001aa418
Ghidra address:
PAL: 0x001b0180

Member Data Documentation

◆ mCmdId

Sch::CmdID GenericSequencer::mCmdId
protected

◆ mCommand

SequencerCmd* GenericSequencer::mCommand
protected

◆ mClock

Sch::TickClock* GenericSequencer::mClock
protected

◆ mStartTick

Sch::Tick GenericSequencer::mStartTick
protected

◆ mOffset

Sch::Tick GenericSequencer::mOffset
protected

◆ mSink

MsgSink* GenericSequencer::mSink
protected

The documentation for this class was generated from the following file: