WSYS

From Luma's Workshop
Revision as of 14:24, 25 August 2024 by SY24 (talk | contribs) (Created page with "== WSYS Header == {| class="wikitable" |- ! Offset ! Type ! Description ! Notes |- | 0x00 | String[4] | WSYS (0x57535953) | |- | 0x04 | UInt32 | File size | |- | 0x08 | Byte[3] | ? | |- | 0x0B | UInt8 | Bank ID | |- | 0x0C | Byte[4] | ? | |- | 0x10 | UInt32 | Offset to WINF Section relative to file beginning. | |- | 0x14 | UInt32 | Offset to WBCT Section relative to file beginning. | |- | 0x18 | Byte[8] | Padding? | |- | 0x20 | | Start of first AW Definition Se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WSYS Header

Offset Type Description Notes
0x00 String[4] WSYS (0x57535953)
0x04 UInt32 File size
0x08 Byte[3] ?
0x0B UInt8 Bank ID
0x0C Byte[4] ?
0x10 UInt32 Offset to WINF Section relative to file beginning.
0x14 UInt32 Offset to WBCT Section relative to file beginning.
0x18 Byte[8] Padding?
0x20 Start of first AW Definition Section.

AW Definition Section

Offset Type Description Notes
0x00 First AW Entry Section. Only holds AW filename if the AW file is empty.
N*0x2C String[0x70] AW filename
N*0x2C+0x70 UInt32 Amount N of AW Entry Offsets
N*0x2C+0x74 Start of AW Entry Offsets

AW Entry Offset

Offset Type Description Notes
0x00 UInt32 Offset to AW Entry Section relative to file beginning.

AW Entry Section (size 0x2C)

Offset Type Description Notes
0x00 UInt16 ?
0x02 UInt16 ?
0x04 Float Sample rate
0x08 UInt32 Offset of sound data in AW file
0x0C UInt32 Size of sound data in AW file
0x10 UInt32 Is loop? 0x00000000 if no loop, 0xFFFFFFFF if loop
0x14 UInt32 Loop start sample
0x18 UInt32 Loop end sample
0x1C UInt32 Total samples
0x20 Int16 Last
0x22 Int16 Penult
0x24 Byte[7] ?
0x2B Byte[1] ?

WINF Section

Offset Type Description Notes
0x00 String[4] WINF (0x57494E46)
0x04 UInt32 Amount N of entries
0x08 Start of entries

WINF entry

Offset Type Description Notes
0x00 UInt32 Offset to AW filename relative to file beginning.

Wave Link Section

Wave ID Section

Offset Type Description Notes
0x00 First Wave ID Definition

Wave ID Definition (size 0x38)

Offset Type Description Notes
0x00 UInt32 Wave ID
0x04 Byte[0x30] ?
0x34 Byte[4] 0xFFFFFFFF

C-DF Section

Offset Type Description Notes
0x00 String[4] C-DF (0x432D4446)
0x04 UInt32 Amount N of entries
0x08 Start of entries

C-DF entry

Offset Type Description Notes
0x00 UInt32 Offset to Wave ID Definition relative to file beginning.

First C-DF Section might belong to first AW Definition Section, thus first Wave ID belongs to first AW Entry.

C-EX Section

?

C-ST Section

?

SCNE Section

Offset Type Description Notes
0x00 String[4] SCNE (0x53434E45)
0x04 Byte[8] ?
0x0C UInt32 Offset to C-DF Section relative to file beginning.
0x10 UInt32 Offset to C-EX Section relative to file beginning.
0x14 UInt32 Offset to C-ST Section relative to file beginning.
0x18 Byte[8] Padding?

WBCT Section

Offset Type Description Notes
0x00 String[4] WBCT (0x57424354)
0x04 UInt32 ?
0x08 UInt32 Amount N of entries
0x0C Start of entries

WBCT entry

Offset Type Description Notes
0x00 UInt32 Offset to SCNE Section relative to file beginning.