Generic RWAC Wave Content: Difference between revisions

m
Conform to format documentation guidelines.
m (Table headers on bit field example)
m (Conform to format documentation guidelines.)
Line 16:
In these assets, sound data is stored in [[#Chunk | chunks]] to be loaded, played, and unloaded in sequence. This is done to minimize RAM usage and increase streaming efficiency. All other data is that of the sound itself.
 
= LayoutStructures =
'''Note: Waves begin with a [[Binary File]] resource.''' (Not subject to the following note.)
<br/>
Line 22:
 
=== Header ===
Unlike most structures, the header for these assets is not in bytes, but bits. As such, an example is given to aid in understanding the format.
 
The offset is replaced with the number of bits, from left to right.
 
{| class="wikitable"
! BitOffset (bits) !! Length (bits) !! Constant Name !! Description !! Comments
|-
| 0 || 4 || SNDPLAYER_VERSION_BITS || Version number || 0 in Burnout
Line 53 ⟶ 49:
This represents a typical stream with no additional fields used.
 
<code>05 04 BB 80 40 07 80 AA</code>
{| class="wikitable"
<code>|+ Hex: 05 04 BB 80 40 07 80 AA</code>
|-
! Bit value !! 0 !! 0 !! 0 !! 0 !! 0 !! 1 !! 0 !! 1 !! 0 !! 0 !! 0 !! 0 !! 0 !! 1 !! 0 !! 0 !! 1 !! 0 !! 1 !! 1 !! 1 !! 0 !! 1 !! 1 !! 1 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0
Line 65 ⟶ 61:
{| class="wikitable"
|-
! rowspan=3 | (cont.) !! 0 !! 1 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 1 !! 1 !! 1 !! 1 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 0 !! 1 !! 0 !! 1 !! 0 !! 1 !! 0 !! 1 !! 0
|-
| colspan=2 | 1 || 0 || colspan=29 | 491690