wavelength 1.0.0
Loading...
Searching...
No Matches
remixinfo.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/binstream.h"
4#include "os/datetime.h"
5#include "os/prnstream.h"
6
8constexpr int kRemixInfoNameSize = 30;
9
11constexpr int kRemixInfoSongSize = 30;
12
14constexpr int kRemixInfoCreatorCount = 4;
15
17constexpr int kRemixInfoCreatorSize = 16;
18
26class RemixInfo {
27public:
30 Reset();
31 }
32
39 void Reset();
40
48 static int WireSize();
49
60 static unsigned long long MakeKey();
61
71#ifdef VIDEO_STANDARD_PAL
72 void ShowDetails(const char *pszPanel, bool bShowPicture = true) const;
73#else
74 void ShowDetails(const char *pszPanel) const;
75#endif
76
84
85 unsigned long long mKey;
88 int mSource;
92 char mReserved92[2]; // +0x92, not yet recovered.
94 signed char mPlayable;
95 signed char mReadOnly;
96 char mReserved9A[2]; // +0x9a, not yet recovered.
97 float mTempo;
98};
99
110
121
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Local date and time of the console clock.
Definition datetime.h:14
Text output stream.
Definition prnstream.h:16
Description of a saved remix.
Definition remixinfo.h:26
int mSkillLevel
Definition remixinfo.h:93
float mTempo
Definition remixinfo.h:97
char mSong[kRemixInfoSongSize]
Definition remixinfo.h:87
signed char mReadOnly
Definition remixinfo.h:95
static unsigned long long MakeKey()
Make a key for a new remix from the clock reading and a random number.
Source
Values of mSource.
Definition remixinfo.h:78
@ kSourceNone
Definition remixinfo.h:79
@ kSourceNet
Definition remixinfo.h:80
@ kSourceMemcard
Definition remixinfo.h:82
@ kSourceCd
Definition remixinfo.h:81
char mReserved92[2]
Definition remixinfo.h:92
int mSource
Definition remixinfo.h:88
char mCreators[kRemixInfoCreatorCount][kRemixInfoCreatorSize]
Definition remixinfo.h:90
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 pa...
char mReserved9A[2]
Definition remixinfo.h:96
unsigned long long mKey
Definition remixinfo.h:85
static int WireSize()
Report the bytes a description occupies in a stream.
DateTime mDate
Definition remixinfo.h:91
void Reset()
Clear every field.
RemixInfo()
Construct a cleared description.
Definition remixinfo.h:29
char mName[kRemixInfoNameSize]
Definition remixinfo.h:86
int mDataSize
Definition remixinfo.h:89
signed char mPlayable
Definition remixinfo.h:94
constexpr int kRemixInfoCreatorCount
The number of creators a remix records.
Definition remixinfo.h:14
constexpr int kRemixInfoNameSize
Bytes of RemixInfo::mName, the terminator included.
Definition remixinfo.h:8
BinStream & operator>>(BinStream &stream, RemixInfo &info)
Read a description from a stream.
PrnStream & operator<<(PrnStream &stream, const RemixInfo &info)
Write a description as its name, key, song, size, date, skill, flags, tempo, and source.
constexpr int kRemixInfoSongSize
Bytes of RemixInfo::mSong, the terminator included.
Definition remixinfo.h:11
constexpr int kRemixInfoCreatorSize
Bytes of each name in RemixInfo::mCreators, the terminator included.
Definition remixinfo.h:17