Line 209:
Line 209:
==== HEAD chunk part 2 ====
==== HEAD chunk part 2 ====
β
There are at least 2 known types of this part:
+
===== Header =====
β
{| class="wikitable"
{| class="wikitable"
|-
|-
β
! Type
+
! Offset
β
! Marker
+
! Size
! Description
! Description
|-
|-
+
| 0x0000
| 1
| 1
β
| 0x01000000
+
| Number of tracks
β
| Used in Super Smash Bros. Brawl
+
|-
+
| 0x0001
+
| 1
+
| Track Description Type
|-
|-
+
| 0x0002
| 2
| 2
β
| 0x01010000
+
| Padding? (0x00)
β
| Used in other games.
|}
|}
β
===== Header =====
+
===== Offset table =====
+
The header contains one of this structure for each track
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 234:
Line 238:
|-
|-
| 0x0000
| 0x0000
+
| 1
+
| 0x01
+
|-
+
| 0x0001
+
| 1
+
| Track description type
+
|-
+
| 0x0002
+
| 2
+
| Padding? (0x00)
+
|-
+
| 0x0004
| 4
| 4
β
| Marker
+
| Offset to track description
|}
|}
β
===== Offset table =====
+
===== Track Descriptions =====
β
The file contains one of this structure for each track
+
There are at least 2 known types of track descriptions:
+
{| class="wikitable"
{| class="wikitable"
|-
|-
β
! Offset
+
! Type
β
! Size
! Description
! Description
|-
|-
β
| 0x0000
+
| 0
β
| 4
+
| Used in Super Smash Bros. Brawl
β
| Marker
|-
|-
β
| 0x0004
+
| 1
β
| 4
+
| Used in other games.
β
| Offset to track description
|}
|}
β
===== Track Description Type 1 =====
+
The header contains one track description for each track
β
The file contains one of this structure for each track
+
+
====== Track Description Type 0 ======
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 280:
Line 295:
|}
|}
β
===== Track Description Type 2 =====
+
====== Track Description Type 1 ======
β
The file contains one of this structure for each track
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 340:
Line 354:
===== Offset table =====
===== Offset table =====
β
The file contains one of this structure for each channel
+
The header contains one of this structure for each channel
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 357:
Line 371:
===== ADPCM Channel Information =====
===== ADPCM Channel Information =====
β
The file contains one of this structure for each channel.
+
The header contains one of this structure for each channel.
{| class="wikitable"
{| class="wikitable"
|-
|-