NoteMuseBase that can copy itself.
More...
#include <notemuse.h>
|
| | NoteMuse (unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel) |
| | Construct a note.
|
| | ~NoteMuse () override |
| | Release the note.
|
| Muse * | Clone () override |
| | Produce a copy of the note on the heap.
|
| | NoteMuseBase (unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel) |
| | Construct a note.
|
| | ~NoteMuseBase () override |
| | Silence the note and release the command.
|
| void | Play (Scheduler *pScheduler) override |
| | Play the note at once.
|
| void | PlayFrom (Scheduler *pScheduler, int nOffset) override |
| | Play the note after the ticks a negative offset delays it.
|
| void | PlayWindow (Scheduler *pScheduler, int nStart, int nEnd) override |
| | Play the note like PlayFrom() when the window is not empty.
|
| void | Stop () override |
| | Withdraw the queued note and silence it.
|
| bool | IsPlaying () override |
| | Report whether the note waits to sound or sounds.
|
| int | GetLength () override |
| | Report the length of the note.
|
| void | SetNoteCB (NoteCB *pNoteCB) override |
| | Set the receiver of the note.
|
| | ~Muse () override |
| | Release the muse.
|
| | Attachment () |
| | Construct an object with no reference.
|
| virtual | ~Attachment () |
| | Release the object.
|
| void | AddRef () |
| | Take one reference.
|
| void | Release () |
| | Give back one reference and delete the object once the last one is gone.
|
|
| static void * | operator new (size_t nSize) |
| | Allocate a note from the pool.
|
| static void | operator delete (void *pBlock) |
| | Return a note to the pool.
|
| static void | ReleaseIfSet (Attachment *pAttachment) |
| | Give back one reference to an object that may be null.
|
NoteMuseBase that can copy itself.
The RTTI includes the class name and records NoteMuseBase as the base. The constructor has no out-of-line copy. The allocations come from the pool of fixed-size blocks, billed to the tag "NoteMuse".
◆ NoteMuse()
| NoteMuse::NoteMuse |
( |
unsigned char | nNote, |
|
|
unsigned char | nVelocity, |
|
|
int | nDuration, |
|
|
unsigned char | nChannel ) |
|
inline |
Construct a note.
- Parameters
-
| nNote | The MIDI note number. |
| nVelocity | The MIDI velocity. |
| nDuration | The length in ticks. |
| nChannel | The MIDI channel. |
◆ ~NoteMuse()
Release the note.
- Ghidra address:
- NTSC-U/C: 0x0034ea68
- Ghidra address:
- PAL: 0x003bbe90
◆ operator new()
| void * NoteMuse::operator new |
( |
size_t | nSize | ) |
|
|
inlinestatic |
Allocate a note from the pool.
- Parameters
-
- Returns
- The block.
◆ operator delete()
| void NoteMuse::operator delete |
( |
void * | pBlock | ) |
|
|
inlinestatic |
Return a note to the pool.
- Parameters
-
◆ Clone()
| Muse * NoteMuse::Clone |
( |
| ) |
|
|
overridevirtual |
Produce a copy of the note on the heap.
- Returns
- The copy, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015bb08
- Ghidra address:
- PAL: 0x0015d2f8
Implements Muse.
The documentation for this class was generated from the following file: