HCA Audio: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 16: Line 16:


// header
// header
4 bytes (char) - signature // "HCA\x00" or C8 C3 C1 00
4 bytes (char) - signature // "HCA\x00" - not encrypted
                          // C8 C3 C1 00 - encrypted
2 bytes (uint16) - version // 0x01 0x03 or 0x02 0x00
2 bytes (uint16) - version // 0x01 0x03 or 0x02 0x00
2 bytes (uint16) - header size
2 bytes (uint16) - header size

Revision as of 22:17, 22 February 2022

Back to index | Edit this page

HCA

  • Format Type : Audio
  • Endian Order : Big Endian
  • Signature : HCA (not encrypted) / C8 C3 C1 00 (encrypted)


Format Specifications

// HCA file format

// big endian

// header
4 bytes (char) - signature // "HCA\x00" - not encrypted
                           // C8 C3 C1 00 - encrypted
2 bytes (uint16) - version // 0x01 0x03 or 0x02 0x00
2 bytes (uint16) - header size

// format info
4 bytes (char) - format string // "fmt\x00"
1 byte (uint8) - channels
3 bytes (uint24) - sample rate
4 bytes (uint32) - frame count
2 bytes (uint16) - encoder delay
2 bytes (uint16) - encoder padding

// compression info (v2.0) or decoder info (v1.X), never both
4 bytes (char) - compression string // "comp"
//TODO

4 bytes (char) - decode string // "dec\x00"
//TODO

MultiEx BMS Script

Not written yet.

Notes and Comments

  • HCA files may be encrypted with XOR.

Games

List of games using this file format:

  • Boku wa Tomodachi ga Sukunai Portable (PSP) (*.HCA)
  • Super Robot Wars T (*.BIN)

And also some games with AWB archives (AWB often contain encrypted HCA audio).

Compatible Programs

See Also