Skip to content

BFWSD File Format

Yannik Marchand edited this page May 5, 2023 · 4 revisions

NW > Sound Files > Wave Sound (FWSD)

Block id Description
0x6800 Info block

Info Block

Offset Size Description
0x0 4 Identifier ("INFO")
0x4 4 Block size
0x8 8 Reference to wave id table (0x0100)
0x10 8 Reference to wave sound data reference table (0x0101)

Wave Sound Data Reference Table

Offset Size Description
0x0 4 Number of entries
0x4 References to wave sound data (0x4900)

Wave Sound Data

Offset Size Description
0x0 8 Reference to wave sound info (0x4901)
0x8 8 Reference to ? (0x0101)
0x10 8 Reference to note info reference table (0x0101)

Wave Sound Info

Offset Size Description
0x0 4 Flags. This field specifies which of the following fields is present.

Every optional field takes up exactly 4 bytes (if present).

Flag Description
0x1 0x0000XXYY: XX = Surround pan, YY = Pan
0x2 Pitch (float)
0x100 Send value (4x1 byte)
0x200 Offset to reference to adshr curve (0x0000)

Note Info Reference Table

Offset Size Description
0x0 4 Number of entries
0x4 References to note info (0x4902)

Note Info

Offset Size Description
0x0 4 Index into wave id table
0x4 4 Flags. This field specifies which of the following fields is present.

Every optional field takes up exactly 4 bytes (if present).

Flag Description
0x1 Original key
0x2 Volume
0x4 0x0000XXYY: XX = Surround pan, YY = Pan
0x8 Pitch (float)
0x200 Offset to reference to adshr curve (0x0000)
Clone this wiki locally