Aal/BARS (File Format)

From Deep Sea Knowledge
Revision as of 02:15, 14 November 2018 by OatmealDome (talk | contribs) (whoops BAMETA comes first)
Jump to navigation Jump to search

An Audio ReSource archive is used to hold small audio files, pointers to larger stream files outside of the archive, and audio metadata. In pre-Switch versions of aal, SARC archives were used as .bars files.

Header

Offset Type Description
0x0 UInt32 "BARS" (0x53524142) magic number
0x4 UInt32 File size
0x8 UInt16 Endianness (0xFFFE for little, 0xFEFF for big)
0xA UInt16 Always 0x101 (might be version number? file will not be loaded with other values)
0xC UInt32 Number of files
N/A UInt32[] CRC32 hashes for each BAMETA
N/A FileEntry[] File entries

File entry

Offset Type Description
0x0 UInt32 Offset to BAMETA file
0x4 UInt32 Offset to BFWAV or BFSTP file