Changes

859 bytes added ,  23:41, 9 August 2016
ADPC chunk information
Line 425: Line 425:  
=== ADPC chunk ===
 
=== ADPC chunk ===
   −
The ADPC chunk is typically 1216 bytes long.
+
The ADPC chunk contains 2 PCM history samples per channel for every entry in the table. The number of samples per entry is specified in the HEAD chunk.<br/>
It seems to contain some other ADPCM table.
+
Each entry in the table contains the final two samples from the preceding block. The first entry in the table contains the history samples contained in part 3 of the HEAD chunk.
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0000
 +
| 4
 +
| "ADPC" (0x41445043)
 +
|-
 +
| 0x0004
 +
| 4
 +
| Length of entire ADPC section.
 +
|-
 +
| 0x0008
 +
| ADPC entry count * Channel count * 4
 +
| ADPC entries
 +
|}
 +
 
 +
==== ADPC table entry====
 +
The size of each entry is the channel count * 4
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0000
 +
| 2
 +
| Channel 0 History sample 1
 +
|-
 +
| 0x0002
 +
| 2
 +
| Channel 0 History sample 2
 +
|-
 +
| 0x0004
 +
| 2
 +
| Channel 1 History sample 1
 +
|-
 +
| 0x0006
 +
| 2
 +
| Channel 1 History sample 2
 +
|-
 +
| 0x0008
 +
| 2
 +
| Channel N History sample 1
 +
|-
 +
| 0x000A
 +
| 2
 +
| Channel N History sample 2
 +
|}
    
=== DATA chunk ===
 
=== DATA chunk ===