wavelength 1.0.0
Loading...
Searching...
No Matches
RemixInfo Class Reference

Description of a saved remix. More...

#include <remixinfo.h>

Collaboration diagram for RemixInfo:

Public Types

enum  Source { kSourceNone = 0 , kSourceNet = 1 , kSourceCd = 2 , kSourceMemcard = 3 }
 Values of mSource. More...

Public Member Functions

 RemixInfo ()
 Construct a cleared description.
void Reset ()
 Clear every field.
void ShowDetails (const char *pszPanel) const
 Show the description in the labels genre, date, rating, creator_1 to creator_4, and read_only of a panel, and the band picture of the song in the panel.

Static Public Member Functions

static int WireSize ()
 Report the bytes a description occupies in a stream.
static unsigned long long MakeKey ()
 Make a key for a new remix from the clock reading and a random number.

Public Attributes

unsigned long long mKey
char mName [kRemixInfoNameSize]
char mSong [kRemixInfoSongSize]
int mSource
int mDataSize
char mCreators [kRemixInfoCreatorCount][kRemixInfoCreatorSize]
DateTime mDate
char mReserved92 [2]
int mSkillLevel
signed char mPlayable
signed char mReadOnly
char mReserved9A [2]
float mTempo

Detailed Description

Description of a saved remix.

A remix file stores one ahead of the remix.

The class is not polymorphic. The name comes from the type information the standard library containers of the class record. The object is 0xa0 bytes. Members whose purpose is unknown are reserved.

Member Enumeration Documentation

◆ Source

Values of mSource.

Enumerator
kSourceNone 

No source.

kSourceNet 

Received over the network.

kSourceCd 

On the disc.

kSourceMemcard 

On a memory card.

Constructor & Destructor Documentation

◆ RemixInfo()

RemixInfo::RemixInfo ( )
inline

Construct a cleared description.

Member Function Documentation

◆ Reset()

void RemixInfo::Reset ( )

Clear every field.

Ghidra address:
NTSC-U/C: 0x0027e8b0
Ghidra address:
PAL: 0x002881c8

◆ WireSize()

int RemixInfo::WireSize ( )
static

Report the bytes a description occupies in a stream.

Returns
The size, a version byte more than the object.
Ghidra address:
NTSC-U/C: 0x0027ea98
Ghidra address:
PAL: 0x002883b0

◆ MakeKey()

unsigned long long RemixInfo::MakeKey ( )
static

Make a key for a new remix from the clock reading and a random number.

The clock reading in seconds fills the upper word and the random number the lower one. The name is inferred.

Returns
The key.
Ghidra address:
NTSC-U/C: 0x0027eb78
Ghidra address:
PAL: 0x00288460

◆ ShowDetails()

void RemixInfo::ShowDetails ( const char * pszPanel) const

Show the description in the labels genre, date, rating, creator_1 to creator_4, and read_only of a panel, and the band picture of the song in the panel.

Parameters
pszPanelThe panel, a SongPicPanel.
bShowPictureIn the PAL build, whether to show the band picture.
Ghidra address:
NTSC-U/C: 0x0019a6d8
Ghidra address:
PAL: 0x001a1c18

Member Data Documentation

◆ mKey

unsigned long long RemixInfo::mKey

The key MakeKey() made for the remix. +0x00

◆ mName

char RemixInfo::mName[kRemixInfoNameSize]

The name the remix is saved under. +0x08

◆ mSong

char RemixInfo::mSong[kRemixInfoSongSize]

The song the remix is made from, a symbol. +0x26

◆ mSource

int RemixInfo::mSource

One of Source. +0x44

◆ mDataSize

int RemixInfo::mDataSize

The size of the remix that follows in bytes. +0x48

◆ mCreators

char RemixInfo::mCreators[kRemixInfoCreatorCount][kRemixInfoCreatorSize]

The creators. +0x4c

◆ mDate

DateTime RemixInfo::mDate

The six-byte date the inline constructor clears. +0x8c

◆ mReserved92

char RemixInfo::mReserved92[2]

◆ mSkillLevel

int RemixInfo::mSkillLevel

The skill level the remix is rated at. +0x94

◆ mPlayable

signed char RemixInfo::mPlayable

Non-zero when the remix can be played. +0x98

◆ mReadOnly

signed char RemixInfo::mReadOnly

Non-zero when the remix may not be saved over. +0x99

◆ mReserved9A

char RemixInfo::mReserved9A[2]

◆ mTempo

float RemixInfo::mTempo

The tempo in beats per minute. +0x9c


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