The scratchers of a scratch track, one set of three for each span of the song.
More...
#include <scratchtrackdata.h>
|
| static constexpr int | kSetSize = 3 |
| | The number of scratchers in a set.
|
The scratchers of a scratch track, one set of three for each span of the song.
The class is not polymorphic. The RTTI of the nested ScratcherSet records the name. A set starts at its tick and lasts until the tick of the next set.
◆ ScratchTrackData()
| ScratchTrackData::ScratchTrackData |
( |
int | nEndTick | ) |
|
|
explicit |
Construct empty data.
- Parameters
-
| nEndTick | The tick at and after which SetScratcher() discards a scratcher. |
- Ghidra address:
- NTSC-U/C: 0x00138880
- Ghidra address:
- PAL: 0x0013a0e0
◆ ~ScratchTrackData()
| ScratchTrackData::~ScratchTrackData |
( |
| ) |
|
Release every scratcher.
- Ghidra address:
- NTSC-U/C: 0x001388a0
- Ghidra address:
- PAL: 0x0013a100
◆ SetScratcher()
| void ScratchTrackData::SetScratcher |
( |
int | nTick, |
|
|
int | nIndex, |
|
|
Scratcher * | pScratcher ) |
Place a scratcher in the set that starts at a tick, creating the set when none starts there.
The data then manages the scratcher. A scratcher at or after the end tick is deleted.
- Parameters
-
| nTick | The tick. |
| nIndex | The position of the scratcher in the set. |
| pScratcher | The scratcher. |
- Ghidra address:
- NTSC-U/C: 0x001389d0
- Ghidra address:
- PAL: 0x0013a230
◆ GetScratchers()
Report the scratchers of the set that plays at a tick.
The set is the last that starts at or before the tick. The data must have one.
- Parameters
-
| nTick | The tick. |
| ppFirst | Receives the first scratcher of the set. |
| ppSecond | Receives the second scratcher of the set. |
| ppThird | Receives the third scratcher of the set. |
- Returns
- The tick of the next set, or -1 when the set is the last.
- Ghidra address:
- NTSC-U/C: 0x00138ac8
- Ghidra address:
- PAL: 0x0013a328
◆ GetEndTick()
| int ScratchTrackData::GetEndTick |
( |
| ) |
const |
|
inline |
◆ kSetSize
| int ScratchTrackData::kSetSize = 3 |
|
staticconstexpr |
The number of scratchers in a set.
The documentation for this class was generated from the following file: