AAL > Audio Resource (BARS)

A BARS file is an audio resource. BARS files are referenced by BARSLIST files.

OffsetSizeDescription
0x04Magic number ("BARS")
0x44Filesize
0x82BOM (always 0xFEFF)
0xA2Version number (0x0101)
0xC4Number of assets
0x10For each asset the CRC32 hash of its name. This table is used to look up the index of an asset. This table must be sorted, because a binary search is used.
For each asset a file offset set. These entries must be ordered the same way as their hashes, because they are looked up by index, which is obtained by searching the hash table.
Audio meta files
Asset files

AAL assumes that there are no hash collisions.

Asset files are aligned to a mulitple of 64 bytes.

File Offset Set

These are absolute offsets.

OffsetSizeDescription
0x04Offset to audio meta file
0x44Offset to asset file (bfwav, bfstp or bwav)

If a resource does not have an asset file, the offset to the asset file is -1.