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

Owner a MusePlayer reports back to. More...

#include <museparent.h>

Inheritance diagram for MuseParent:

Public Member Functions

virtual void RetainOnly (MusePlayer *pPlayer)=0
 Retain only the reporting player.
virtual void PlayerFinished (MusePlayer *pPlayer)=0
 Report that a player has finished.

Detailed Description

Owner a MusePlayer reports back to.

Its RTTI descriptor is at 0x0086f798. It has no base list. The class declares no data member and no virtual destructor. Its subobject is the four-byte compiler-generated vptr alone. MuseSynth places it at +0x04 and is the one implementation recovered.

The table has three entries. Slot 0 is the type function and the two that follow are the class's own virtuals. There is no destructor slot, which is what proves the class declares none.

Both members take the reporting player. Their meaning comes from MuseSynth's two bodies and from MultiMusePlayer's two overrides, which forward each one further up the chain.

Member Function Documentation

◆ RetainOnly()

virtual void MuseParent::RetainOnly ( MusePlayer * pPlayer)
pure virtual

Retain only the reporting player.

Table slot 1. MuseSynth's body at 0x001aa908 does not perform work unless the player reports non-zero from MusePlayer::DisplacesSiblings(), and then deletes and unlinks every other player it manages. MultiMusePlayer's override at 0x001aa1f8 reports the same request to its own parent once, the first time, before running MuseSynth's body.

Parameters
pPlayerThe player to retain.

Implemented in MultiMusePlayer, and MuseSynth.

◆ PlayerFinished()

virtual void MuseParent::PlayerFinished ( MusePlayer * pPlayer)
pure virtual

Report that a player has finished.

Table slot 2. MuseSynth's body at 0x001aa9f0 unlinks the player and deletes it. MultiMusePlayer's override at 0x001a9c30 additionally reports itself finished to its own parent once its schedule is exhausted and the last player is gone.

Parameters
pPlayerThe player that has finished.

Implemented in MultiMusePlayer, and MuseSynth.


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