Difference between revisions of "Aal/BARS (File Format)"

From Deep Sea Knowledge
Jump to navigation Jump to search
(add correct name of the format)
(fix wrong syntax)
Line 1: Line 1:
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|aal]], SARC archives were used as <code>.bars</code> files.
+
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|aal]], SARC archives were used as <code>.bars</code> files.
  
 
== Header ==
 
== Header ==

Revision as of 05:14, 11 November 2018

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 BFWAV or BFSTP file
0x4 UInt32 Offset to BAMETA file