Wave Dictionary: Difference between revisions

no edit summary
No edit summary
Line 43:
 
== RwaUniqueID ==
{| class="wikitable" style=text-align:left
<syntaxhighlight lang="cpp">
! Offset
struct RwaUniqueID
! Type
{
! Name
RwaUUID* uuid;
|-
char* uniqueName;
| 0x00 || RwaUUID* || uuid
uint32_t flags;
|-
};
| 0x04 || char* || uniqueName
</syntaxhighlight>
|-
| 0x08 || uint32_t || flags
|-
|}
 
== RwaWaveDict ==
{| class="wikitable" style=text-align:left
<syntaxhighlight lang="cpp">
! Offset
class RwaWaveDict
! Type
{
! Name
RwaUniqueID uniqueID;
|-
RwaLLNode waveListHead;
| 0x00 || RwaUniqueID || uniqueID
uint16_t pad;
|-
int8_t flagsAux;
| 0x0C || RwaLLNode || waveListHead
int8_t flags;
|-
RwLLLink link;
| 0x18 || int8_t || flagsAux
void* dumpAddr;
|-
void* waveRAMHandle;
| 0x19 || int8_t || flags
uint32_t waveRAMSize;
|-
};
| 0x1C || RwLLLink || link
</syntaxhighlight>
|-
| 0x24 || void* || dumpAddr
|-
| 0x28 || void* || waveRAMHandle
|-
| 0x2C || void* || waveRAMSize
|-
|}
 
== RwaWaveFormat ==
{| class="wikitable" style=text-align:left
<syntaxhighlight lang="cpp">
! Offset
struct RwaWaveFormat
! Type
{
! Name
uint32_t sampleRate;
|-
RwaUUID* dataType;
| 0x00 || uint32_t length;|| uniqueID
|-
uint8_t bitDepth;
| 0x04 || RwaUUID* || dataType
uint8_t noChannels;
|-
uint16_t pad;
| 0x08 || uint32_t || length
void* miscData;
|-
uint32_t miscDataSize;
| 0x0C || uint8_t flags;|| bitDepth
|-
uint8_t reserved;
| 0x0D || uint8_t || noChannels
};
|-
</syntaxhighlight>
| 0x10 || void* || miscData
|-
| 0x14 || uint32_t || miscDataSize
|-
| 0x18 || uint8_t || flags
|-
| 0x1C || uint8_t || reserved
|-
|}
 
== RwaWave ==
{| class="wikitable" style=text-align:left
<syntaxhighlight lang="cpp">
! Offset
class RwaWave
! Type
{
! Name
RwaUniqueID uniqueID;
|-
RwaWaveDef* waveDef; // Pointer to location in system memory.
| 0x00 || RwaUniqueID || uniqueID
RwaWaveFormat format;
|-
RwaWaveFormat targetFormat; // Usually identical to format.
| 0x0C || RwaLLNode || waveListHead
uint32_t uncompressedLength; // 0 if using compressed audio.
|-
void* data;
| 0x14 || int8_t || flagsAux
void* state;
|-
uint32_t flags;
| 0x15 || int8_t || flags
RwaObj* obj;
|-
};
| 0x18 || RwLLLink || link
</syntaxhighlight>
|-
| 0x20 || void* || dumpAddr
|-
| 0x24 || void* || waveRAMHandle
|-
| 0x28 || void* || waveRAMSize
|-
|}