Wave Dictionary: Difference between revisions

From Burnout Wiki
Content added Content deleted
(Narrow RwaWaveFormat box)
(Link to RwaWaveFormat section)
Line 69: Line 69:
{{ MemoryLocationTableRow | offset=0x0C | name=waveDef | type=RwaWaveDef* | value= | description=Pointer to location in system memory. }}
{{ MemoryLocationTableRow | offset=0x0C | name=waveDef | type=RwaWaveDef* | value= | description=Pointer to location in system memory. }}
|-
|-
{{ MemoryLocationTableRow | offset=0x10 | name=format | type=RwaWaveFormat | value= | description= }}
{{ MemoryLocationTableRow | offset=0x10 | name=format | type=[[Wave Dictionary#RwaWaveFormat|RwaWaveFormat]] | value= | description= }}
|-
|-
{{ MemoryLocationTableRow | offset=0x2C | name=targetFormat | type=RwaWaveFormat | value= | description= Usually identical to <code>format</code>. }}
{{ MemoryLocationTableRow | offset=0x2C | name=targetFormat | type=RwaWaveFormat | value= | description= Usually identical to <code>format</code>. }}

Revision as of 21:12, 4 January 2021

The RenderWare Audio Wave Dictionary container format is used to store a collection of audio files. It uses the file extension .awd.

Layout

Template:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRow
Offset Name Type Value Description
Header
Wave Dictionary

RwaWave

Each wave is of type RwaWave, stored in a RwLLNode in the RwLinkList. In the AWD are of type , and are serialized as below:

Template:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRowTemplate:MemoryLocationTableRow
Offset Name Type Value Description

This is followed by the RwaLLNode, the entry (of type char[]) and a 128-bit UUID.

RwaWaveFormat

struct RwaWaveFormat {
    RwUInt32 sampleRate;
    RwaUUID* dataType;
    RwUInt32 length;
    RwUInt8 bitDepth;
    RwUInt8 noChannels;
    unsigned char pad[2];
    void* miscData;
    RwUInt8 miscDataSize;
    RwUInt8 flags;
    RwUInt8 reserved;
};