@@ -20,13 +20,13 @@ equivalent to fmt) and a DATA struct (the equivalent to data).
2020| --------| ------| ------------------------------------------------------------------------------------------------------------------------|
2121| 0x000 | 4 | Magic (CWAV) |
2222| 0x004 | 2 | Endianness (0xFEFF = little, 0xFFFE = big) |
23- | 0x006 | 2 | Header Size (0x40 due to [ Info Block] ( #Info_Block " wikilink ") alignment) |
23+ | 0x006 | 2 | Header Size (0x40 due to [ Info Block] ( #info_block " wikilink ") alignment) |
2424| 0x008 | 4 | Version (0x02010000) |
2525| 0x00C | 4 | File Size |
2626| 0x010 | 2 | Number of Blocks (2) |
2727| 0x012 | 2 | Reserved |
28- | 0x014 | 12 | [ Info Block] ( #Info_Block " wikilink ") [ Sized Reference] ( #Sized_Reference " wikilink ") (Offset relative to start of file) |
29- | 0x020 | 12 | [ Data Block] ( #Data_Block " wikilink ") [ Sized Reference] ( #Sized_Reference " wikilink ") (Offset relative to start of file) |
28+ | 0x014 | 12 | [ Info Block] ( #Info_Block " wikilink ") [ Sized Reference] ( #sized_reference " wikilink ") (Offset relative to start of file) |
29+ | 0x020 | 12 | [ Data Block] ( #Data_Block " wikilink ") [ Sized Reference] ( #sized_reference " wikilink ") (Offset relative to start of file) |
3030
3131### Block Header
3232
@@ -39,35 +39,35 @@ equivalent to fmt) and a DATA struct (the equivalent to data).
3939
4040| MAGIC | TYPE |
4141| -------| --------------------------------------|
42- | INFO | [ Info Block] ( #Info_Block " wikilink ") |
43- | DATA | [ Data Block] ( #Data_Block " wikilink ") |
42+ | INFO | [ Info Block] ( #info_block " wikilink ") |
43+ | DATA | [ Data Block] ( #data_block " wikilink ") |
4444
4545### Info Block
4646
4747| OFFSET | SIZE | DESCRIPTION |
4848| --------| ------| -----------------------------------------------------------------------------------------|
49- | 0x000 | 8 | [ Block Header] ( #Block_Header " wikilink ") |
50- | 0x008 | 1 | [ Encoding] ( #Encoding " wikilink ") |
49+ | 0x000 | 8 | [ Block Header] ( #block_header " wikilink ") |
50+ | 0x008 | 1 | [ Encoding] ( #encoding " wikilink ") |
5151| 0x009 | 1 | Loop (0 = don't loop, 1 = loop) |
5252| 0x00A | 2 | Padding |
5353| 0x00C | 4 | Sample Rate |
5454| 0x010 | 4 | Loop Start Frame |
5555| 0x014 | 4 | Loop End Frame |
5656| 0x018 | 4 | Reserved |
57- | 0x01C | X | [ Channel Info] ( #Channel_Info " wikilink ") [ Reference Table] ( #Reference_Table " wikilink ") |
58- | X | X | [ Channel Info] ( #Channel_Info " wikilink ") Entries |
57+ | 0x01C | X | [ Channel Info] ( #Channel_Info " wikilink ") [ Reference Table] ( #reference_table " wikilink ") |
58+ | X | X | [ Channel Info] ( #channel_info " wikilink ") Entries |
5959
6060If encoding is DSP ADPCM:
6161
6262| OFFSET | SIZE | DESCRIPTION |
6363| --------| ------| ------------------------------------------------------|
64- | X | X | [ DSP ADPCM Info] ( #DSP_ADPCM_Info " wikilink ") Entries |
64+ | X | X | [ DSP ADPCM Info] ( #dsp_adpcm_info " wikilink ") Entries |
6565
6666If encoding is IMA ADPCM:
6767
6868| OFFSET | SIZE | DESCRIPTION |
6969| --------| ------| ------------------------------------------------------|
70- | X | X | [ IMA ADPCM Info] ( #IMA_ADPCM_Info " wikilink ") Entries |
70+ | X | X | [ IMA ADPCM Info] ( #ima_adpcm_info " wikilink ") Entries |
7171
7272The info block is aligned to 0x20 bytes.
7373
@@ -84,17 +84,17 @@ The info block is aligned to 0x20 bytes.
8484
8585| OFFSET | SIZE | DESCRIPTION |
8686| --------| ------| ---------------------------------------------------------------------------------------------------------------------|
87- | 0x000 | 8 | Samples [ Reference] ( #Reference " wikilink ") (Offset relative to [ Data Block] ( #Data_Block " wikilink ") Data field) |
88- | 0x008 | 8 | ADPCM Info [ Reference] ( #Reference " wikilink ") (Offset relative to Samples [ Reference] ( #Reference " wikilink ") field) |
87+ | 0x000 | 8 | Samples [ Reference] ( #Reference " wikilink ") (Offset relative to [ Data Block] ( #data_block " wikilink ") Data field) |
88+ | 0x008 | 8 | ADPCM Info [ Reference] ( #Reference " wikilink ") (Offset relative to Samples [ Reference] ( #reference " wikilink ") field) |
8989| 0x010 | 4 | Reserved |
9090
9191##### DSP ADPCM Info
9292
9393| OFFSET | SIZE | DESCRIPTION |
9494| --------| ------| -----------------------------------------------|
95- | 0x000 | 32 | [ Param] ( #DSP_ADPCM_Param " wikilink ") |
96- | 0x020 | 6 | [ Context] ( #DSP_ADPCM_Context " wikilink ") |
97- | 0x026 | 6 | Loop [ Context] ( #DSP_ADPCM_Context " wikilink ") |
95+ | 0x000 | 32 | [ Param] ( #dsp_adpcm_param " wikilink ") |
96+ | 0x020 | 6 | [ Context] ( #dsp_adpcm_context " wikilink ") |
97+ | 0x026 | 6 | Loop [ Context] ( #dsp_adpcm_context " wikilink ") |
9898| 0x02C | 2 | Padding |
9999
100100###### DSP ADPCM Param
@@ -116,8 +116,8 @@ The info block is aligned to 0x20 bytes.
116116
117117| OFFSET | SIZE | DESCRIPTION |
118118| --------| ------| -----------------------------------------------|
119- | 0x000 | 4 | [ Context] ( #IMA_ADPCM_Context " wikilink ") |
120- | 0x004 | 4 | Loop [ Context] ( #IMA_ADPCM_Context " wikilink ") |
119+ | 0x000 | 4 | [ Context] ( #ima_adpcm_context " wikilink ") |
120+ | 0x004 | 4 | Loop [ Context] ( #ima_adpcm_context " wikilink ") |
121121
122122###### IMA ADPCM Context
123123
@@ -131,8 +131,8 @@ The info block is aligned to 0x20 bytes.
131131
132132| OFFSET | SIZE | DESCRIPTION |
133133| --------| ---------------------------------------------------------| ------------------------------------------|
134- | 0x000 | 8 | [ Block Header] ( #Block_Header " wikilink ") |
135- | 0x008 | [ Block Header] ( #Block_Header " wikilink ") Size Value - 8 | Data |
134+ | 0x000 | 8 | [ Block Header] ( #block_header " wikilink ") |
135+ | 0x008 | [ Block Header] ( #block_header " wikilink ") Size Value - 8 | Data |
136136
137137The data block is aligned to 0x20 bytes, as well as the data field's
138138actual sample data.
@@ -142,13 +142,13 @@ actual sample data.
142142| OFFSET | SIZE | DESCRIPTION |
143143| --------| ------------| -----------------------------------------------------------------------|
144144| 0x000 | 4 | Count |
145- | 0x004 | Count \* 8 | [ References] ( #Reference " wikilink ") (Offsets relative to Count field) |
145+ | 0x004 | Count \* 8 | [ References] ( #reference " wikilink ") (Offsets relative to Count field) |
146146
147147### Sized Reference
148148
149149| OFFSET | SIZE | DESCRIPTION |
150150| --------| ------| ------------------------------------|
151- | 0x000 | 8 | [ Reference] ( #Reference " wikilink ") |
151+ | 0x000 | 8 | [ Reference] ( #reference " wikilink ") |
152152| 0x008 | 4 | Size |
153153
154154### Reference
@@ -163,11 +163,11 @@ actual sample data.
163163
164164| ID | TYPE |
165165| --------| ----------------------------------------------|
166- | 0x0300 | [ DSP ADPCM Info] ( #DSP_ADPCM_Info " wikilink ") |
167- | 0x0301 | [ IMA ADPCM Info] ( #IMA_ADPCM_Info " wikilink ") |
168- | 0x1F00 | [ Sample Data] ( #Data_Block " wikilink ") |
169- | 0x7000 | [ Info Block] ( #Info_Block " wikilink ") |
170- | 0x7001 | [ Data Block] ( #Data_Block " wikilink ") |
171- | 0x7100 | [ Channel Info] ( #Channel_Info " wikilink ") |
166+ | 0x0300 | [ DSP ADPCM Info] ( #dsp_adpcm_info " wikilink ") |
167+ | 0x0301 | [ IMA ADPCM Info] ( #ima_adpcm_info " wikilink ") |
168+ | 0x1F00 | [ Sample Data] ( #data_block " wikilink ") |
169+ | 0x7000 | [ Info Block] ( #info_block " wikilink ") |
170+ | 0x7001 | [ Data Block] ( #data_block " wikilink ") |
171+ | 0x7100 | [ Channel Info] ( #channel_info " wikilink ") |
172172
173173[ Category: File formats] ( Category:File_formats " wikilink ")
0 commit comments