Changes

510 bytes added ,  04:02, 10 December 2015
m
no edit summary
Line 80: Line 80:  
|-
 
|-
 
| 0x01C || 4 + Count * 8 || [[#Channel Info|Channel Info]] [[#Reference Table|Reference Table]] (Offsets relative to this field)
 
| 0x01C || 4 + Count * 8 || [[#Channel Info|Channel Info]] [[#Reference Table|Reference Table]] (Offsets relative to this field)
 +
|-
 +
| 0x01C + (4 + Count * 8) || Count * 20 || [[#Channel Info|Channel Info]] Entries
 
|}
 
|}
   −
The info block is aligned to 0x20 bytes.
+
If encoding is DSP ADPCM:
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! OFFSET !! SIZE !!  DESCRIPTION
 +
|-
 +
| 0x01C + (4 + Count * 8) + (Count * 20) || Count * 46 || [[#DSP ADPCM Info|DSP ADPCM Info]] Entries
 +
|}
   −
=== Data Block ===
+
If encoding is IMA ADPCM:
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 90: Line 99:  
! OFFSET !! SIZE !!  DESCRIPTION
 
! OFFSET !! SIZE !!  DESCRIPTION
 
|-
 
|-
| 0x000 || 8 || [[#Block Header|Block Header]]
+
| 0x01C + (4 + Count * 8) + (Count * 20) || Count * 8 || [[#IMA ADPCM Info|IMA ADPCM Info]] Entries
|-
  −
| 0x008 || [[#Block Header|Block Header]] Size - 8 || Data
   
|}
 
|}
   −
The data block is aligned to 0x20 bytes, as well as the data field's actual sample data.
+
The info block is aligned to 0x20 bytes.
   −
=== Encoding ===
+
==== Encoding ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 112: Line 119:  
|}
 
|}
   −
=== Channel Info ===
+
==== Channel Info ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 125: Line 132:  
|}
 
|}
   −
=== DSP ADPCM Info ===
+
==== DSP ADPCM Info ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 140: Line 147:  
|}
 
|}
   −
=== DSP ADPCM Param ===
+
==== DSP ADPCM Param ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 149: Line 156:  
|}
 
|}
   −
=== DSP ADPCM Context ===
+
==== DSP ADPCM Context ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 164: Line 171:  
|}
 
|}
   −
=== IMA ADPCM Info ===
+
==== IMA ADPCM Info ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 175: Line 182:  
|}
 
|}
   −
=== IMA ADPCM Context ===
+
==== IMA ADPCM Context ====
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 187: Line 194:  
| 0x003 || 1 || Padding
 
| 0x003 || 1 || Padding
 
|}
 
|}
 +
 +
=== Data Block ===
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! OFFSET !! SIZE !!  DESCRIPTION
 +
|-
 +
| 0x000 || 8 || [[#Block Header|Block Header]]
 +
|-
 +
| 0x008 || [[#Block Header|Block Header]] Size Value - 8 || Data
 +
|}
 +
 +
The data block is aligned to 0x20 bytes, as well as the data field's actual sample data.
    
=== Reference Table ===
 
=== Reference Table ===
1,434

edits