Difference between revisions of "Aal/BARS (File Format)"
Jump to navigation
Jump to search
OatmealDome (talk | contribs) (fix wrong syntax) |
OatmealDome (talk | contribs) (whoops BAMETA comes first) |
||
Line 28: | Line 28: | ||
! Offset !! Type !! Description | ! Offset !! Type !! Description | ||
|- | |- | ||
− | | 0x0 || UInt32 || Offset to | + | | 0x0 || UInt32 || Offset to BAMETA file |
|- | |- | ||
− | | 0x4 || UInt32 || Offset to | + | | 0x4 || UInt32 || Offset to BFWAV or BFSTP file |
|} | |} | ||
[[Category:File formats]] | [[Category:File formats]] | ||
[[Category:Aal (Library)]] | [[Category:Aal (Library)]] |
Revision as of 02:15, 14 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 BAMETA file |
0x4 | UInt32 | Offset to BFWAV or BFSTP file |