Difference between revisions of "Aal/BARS (File Format)"
Jump to navigation
Jump to search
OatmealDome (talk | contribs) (fix wrong syntax) |
(0xFEFF is actually little endian, 0xFFFE is big endian.) |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
| 0x4 || UInt32 || File size | | 0x4 || UInt32 || File size | ||
|- | |- | ||
− | | 0x8 || UInt16 || Endianness (<code> | + | | 0x8 || UInt16 || Endianness (<code>0xFEFF</code> for little, <code>0xFFFE</code> for big) |
|- | |- | ||
| 0xA || UInt16 || Always <code>0x101</code> (might be version number? file will not be loaded with other values) | | 0xA || UInt16 || Always <code>0x101</code> (might be version number? file will not be loaded with other values) | ||
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)]] |
Latest revision as of 05:56, 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 (0xFEFF for little, 0xFFFE 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 |