Line 323:
Line 323:
| 1
| 1
| Padding? (0x00)
| Padding? (0x00)
+
|}
+
+
+
====HEAD chunk part 3====
+
+
HEAD chunk part 3 header
+
{| class="wikitable"
+
|-
+
! Offset
+
! Size
+
! Description
+
|-
+
| 0x0000
+
| 1
+
| Number of channels
+
|-
+
| 0x0001
+
| 3
+
| Padding? (0x00)
+
|}
+
+
+
HEAD chunk part 3 offset table<br/>
+
The file contains one of this structure for each channel
+
{| class="wikitable"
+
|-
+
! Offset
+
! Size
+
! Description
+
|-
+
| 0x0000
+
| 4
+
| Marker (0x01000000)
+
|-
+
| 0x0004
+
| 4
+
| Offset to channel information
+
|}
+
+
HEAD chunk part 3 channel information table<br/>
+
The file contains one of this structure for each channel.
+
{| class="wikitable"
+
|-
+
! Offset
+
! Size
+
! Description
+
|-
+
| 0x0000
+
| 4
+
| Marker (0x01000000)
+
|-
+
| 0x0004
+
| 4
+
| Offset to channel ADPCM coefficients
+
|-
+
| 0x0008
+
| 0x20
+
| 16 Int16 ADPCM coefficients
+
|-
+
| 0x0028
+
| 2
+
| Gain
+
|-
+
| 0x002A
+
| 2
+
| Initial predictor/scale
+
|-
+
| 0x002C
+
| 2
+
| History sample 1
+
|-
+
| 0x002E
+
| 2
+
| History sample 2
+
|-
+
| 0x0030
+
| 2
+
| Loop predictor/scale
+
|-
+
| 0x0032
+
| 2
+
| Loop History sample 1
+
|-
+
| 0x0034
+
| 2
+
| Loop History sample 2
+
|-
+
| 0x0036
+
| 2
+
| Padding (0x00)
|}
|}