BAROC (File Format)

From Wexos's Wiki
Revision as of 16:57, 1 May 2024 by Wexos (talk | contribs) (Imported from avsys wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

BAROC (Binary Audio Roll-Off Curve) is a file format used in Nintendo Switch games. It controls audio frequency roll-off.

File Format

The BAROC file format is a very simple format and consists of the following structure:

Offset Type Description
0x00 Char[4] File magic. Always AROC in ASCII.
0x04 UInt16 Byte-order-mark. FE FF for big endian, FF FE for little endian.
0x06 UInt16 Version number.
0x08 Int32 Curve type:
  • 0 = None
  • 1 = Inverse
  • 2 = Linear
  • 3 = Exponential
  • 4 = Segment
0x0C Float Roll-off start.
0x10 Float Roll-off end. 0 if it lasts until the end of the sound?
0x14 Float Hold distance.
0x18 Float Unit distance.
0x1C Float Decay ratio.
0x20 Float Culling start distance.

Version List

Version Found in
0.2

Tools

The following tools can handle BAROC files:

  • (none)