resonance 1.0.1
Loading...
Searching...
No Matches
AllNotesOffMsg Class Reference

Event the game passes between a MsgSource and a MsgSink. More...

#include <allnotesoffmsg.h>

Inheritance diagram for AllNotesOffMsg:
Collaboration diagram for AllNotesOffMsg:

Public Member Functions

 AllNotesOffMsg ()
 Construct a message with the song position at kTickInfinity.
 AllNotesOffMsg (int nTick)
 Construct a message at a song position.
virtual Message * Clone ()
 Produce a heap copy of this message.
virtual int Type ()
 Report this message's registered identity.
virtual const char * GetName () const
 Report this message's class name.
virtual int IsAllNotesOff ()
 Report that this message is an all-notes-off message.
Public Member Functions inherited from MuseMsg
 MuseMsg ()
 Start the song position at kTickInfinity.
 MuseMsg (int nTick)
 Start the song position at a tick.
MuseMsg * CloneAndShift (int nTick)
 Copy this message and move the copy to a song position.
Public Member Functions inherited from Message
void * operator new (size_t nSize)
 Allocate a message from the tagged heap under the tag MSG.
void operator delete (void *pBlock)
 Release a message to the tagged heap under the tag MSG.
virtual ~Message ()
 Vtable slot 1.
virtual void PrintExtra (std::ostream &stream) const
 Write this message's payload to a stream.
virtual void saveGuts (OBStream &stream) const
 Write this message's payload to an output stream.
virtual void restoreGuts (IBStream &stream)
 Read this message's payload from an input stream.
std::ostream & Print (std::ostream &stream) const
 Write this message to a diagnostic stream as {GetName() PrintExtra()}.

Static Public Member Functions

static Message * New ()
 Produce a default-constructed message on the heap.
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Additional Inherited Members

Public Attributes inherited from MuseMsg
int mTick
 The song position, in MIDI ticks.

Detailed Description

Event the game passes between a MsgSource and a MsgSink.

Its RTTI descriptor is at 0x008effe0. It has MuseMsg as its one base. The object is 0x8 bytes and its vtable is at 0x007dd438. The allocation in New() and the allocation in Clone() report the same size.

The fields through +0x07 belong to MuseMsg and are declared there.

This class adds no field of its own, and the size is exactly the size of the base, which is what fixes the size of the base.

The table has nine entries and a zero terminator at index 9, one more than MuseMsg's. The class introduces one virtual at slot 8. A second emission of the same table at 0x00812e40 agrees entry for entry.

The destructor at 0x0019a538 is compiler-generated and has no declaration here.

Constructor & Destructor Documentation

◆ AllNotesOffMsg() [1/2]

AllNotesOffMsg::AllNotesOffMsg ( )
inline

Construct a message with the song position at kTickInfinity.

Inline. New() expands it. A declaration is required because the class declares a second constructor.

◆ AllNotesOffMsg() [2/2]

AllNotesOffMsg::AllNotesOffMsg ( int nTick)
inlineexplicit

Construct a message at a song position.

Inline, with no address of its own. AutoRiffer::OnStopRiff() at 0x001993c4 expands it on its stack, storing only the position.

Parameters
nTickThe song position, in MIDI ticks.

Member Function Documentation

◆ New()

Message * AllNotesOffMsg::New ( )
static

Produce a default-constructed message on the heap.

The translation unit at 0x003d9818 registers this factory against identity 203.

Returns
The message.
Ghidra address:
NTSC-U/C: 0x003d6dc8
Ghidra address:
PAL: 0x0040ecb8

◆ Clone()

virtual Message * AllNotesOffMsg::Clone ( )
virtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x0019a618
Ghidra address:
PAL: 0x001a0380

Implements Message.

◆ Type()

virtual int AllNotesOffMsg::Type ( )
virtual

Report this message's registered identity.

Returns
g_dwAllNotesOffMsgType.
Ghidra address:
NTSC-U/C: 0x0019a670
Ghidra address:
PAL: 0x001a03d8

Implements Message.

◆ GetName()

virtual const char * AllNotesOffMsg::GetName ( ) const
virtual

Report this message's class name.

Returns
The literal AllNotesOffMsg.
Ghidra address:
NTSC-U/C: 0x0019a680
Ghidra address:
PAL: 0x001a03e8

Implements Message.

◆ IsAllNotesOff()

virtual int AllNotesOffMsg::IsAllNotesOff ( )
virtual

Report that this message is an all-notes-off message.

Slot 8, the one virtual this class introduces.

The body returns 1. The image records no direct caller. The title is inferred from a constant result on a virtual only this class declares.

Returns
1.
Ghidra address:
NTSC-U/C: 0x0019a690
Ghidra address:
PAL: 0x001a03f8

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