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

Sink that delivers everything it receives to every registered sink. More...

#include <msgsplitter.h>

Inheritance diagram for MsgSplitter:
Collaboration diagram for MsgSplitter:

Public Member Functions

 MsgSplitter ()
virtual ~MsgSplitter ()
virtual void DispatchPriv (Message *pMsg)
 Deliver a message to every registered sink.
Public Member Functions inherited from MsgSink
void * operator new (size_t nSize)
 Allocate a sink from the tagged heap under the tag "MsgSink".
void operator delete (void *pBlock)
 Release a sink to the tagged heap.
virtual ~MsgSink ()
virtual void Dispatch (Message *pMsg)
 Accept a message.
Public Member Functions inherited from MsgSource
virtual ~MsgSource ()
virtual void AddSink (MsgSink *pSink)
 Register a sink, ignoring a sink that is already registered.
virtual void RemoveSink (MsgSink *pSink)
 Unregister the first occurrence of a sink.
void Send (Message *pMsg) const
 Deliver a message to every registered sink, in registration order.
void ClearSinks ()
 Unregister every sink.

Additional Inherited Members

Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Detailed Description

Sink that delivers everything it receives to every registered sink.

Its RTTI descriptor is at 0x008f0800. It has MsgSink at offset 0 and MsgSource at offset 4. The object is 0x18 bytes: the MsgSink vptr at +0x00, the MsgSource subobject over +0x04 through +0x17, and the MsgSource vptr inside that at +0x14. The class declares no data member.

Its primary table is at 0x007e0128 and its MsgSource table at 0x007e0100. MuseSynth embeds one at +0x0c and exposes it as the sink every player it creates sends to.

The three bodies sit inside MuseSynth's run of code, so they are written in that translation unit. The name comes from the RTTI descriptor.

Constructor & Destructor Documentation

◆ MsgSplitter()

MsgSplitter::MsgSplitter ( )
Ghidra address:
NTSC-U/C: 0x001aae68
Ghidra address:
PAL: 0x001b0bd0

◆ ~MsgSplitter()

virtual MsgSplitter::~MsgSplitter ( )
virtual
Ghidra address:
NTSC-U/C: 0x001aad98
Ghidra address:
PAL: 0x001b0b00

Member Function Documentation

◆ DispatchPriv()

virtual void MsgSplitter::DispatchPriv ( Message * pMsg)
virtual

Deliver a message to every registered sink.

Primary table slot 3. Forwards to MsgSource::Send().

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001ab4a8
Ghidra address:
PAL: 0x001b1210

Implements MsgSink.


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