BCWAV: Difference between revisions

Steveice10 (talk | contribs)
mNo edit summary
Line 20: Line 20:
| 0x004 || 2 || Endianness (0xFEFF = little, 0xFFFE = big)
| 0x004 || 2 || Endianness (0xFEFF = little, 0xFFFE = big)
|-
|-
| 0x006 || 2 || Header Size (0x40)
| 0x006 || 2 || Header Size (0x40 due to [[BCWAV#Info Block|Info Block]] alignment)
|-
|-
| 0x008 || 4 || Version (0x02010000)
| 0x008 || 4 || Version (0x02010000)
Line 33: Line 33:
|-
|-
| 0x020 || 12 || [[BCWAV#Data Block|Data Block]] [[BCWAV#Sized Reference|Sized Reference]] (Offset relative to start of file)
| 0x020 || 12 || [[BCWAV#Data Block|Data Block]] [[BCWAV#Sized Reference|Sized Reference]] (Offset relative to start of file)
|-
| 0x02C || 20 || Padding
|}
|}


Line 83: Line 81:
| 0x01C || 4 + Count * 8 || [[BCWAV#Channel Info|Channel Info]] [[BCWAV#Reference Table|Reference Table]]
| 0x01C || 4 + Count * 8 || [[BCWAV#Channel Info|Channel Info]] [[BCWAV#Reference Table|Reference Table]]
|}
|}
The info block is aligned to 0x20 bytes.


=== Data Block ===
=== Data Block ===
Line 94: Line 94:
| 0x008 || [[BCWAV#Block Header|Block Header]] Size - 8 || Data
| 0x008 || [[BCWAV#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.


=== Encoding ===
=== Encoding ===
Line 134: Line 136:
|-
|-
| 0x026 || 6 || Loop [[BCWAV#DSP ADPCM Context|Context]]
| 0x026 || 6 || Loop [[BCWAV#DSP ADPCM Context|Context]]
|-
| 0x02C || 2 || Padding
|}
|}