Difference between revisions of "HCA Audio"

From XentaxWiki
Jump to: navigation, search
(Format Specifications)
(Compatible Programs)
 
(17 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* ''' Format Type ''':    Audio <br>  
 
* ''' Format Type ''':    Audio <br>  
 
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Big Endian <br>
 
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Big Endian <br>
 +
* ''' Signature ''':    HCA <br>
  
  
Line 42: Line 43:
 
=== Notes and Comments ===  
 
=== Notes and Comments ===  
  
None.
+
* HCA files may be encrypted with '''XOR'''.
  
 
=== Games ===  
 
=== Games ===  
 
List of games using this file format:
 
List of games using this file format:
 
* Boku wa Tomodachi ga Sukunai Portable (PSP) (*.HCA)
 
* Boku wa Tomodachi ga Sukunai Portable (PSP) (*.HCA)
 +
* Super Robot Wars T (*.BIN)
  
 
=== Compatible Programs ===  
 
=== Compatible Programs ===  
  
* foobar2000 + vgmstream plugin
+
* [https://github.com/kohos/CriTools CriTools]
 +
* foobar2000 + vgmstream plugin (supports encrypted files)
 +
* [https://github.com/KinoMyu/FastHCADecoder FastHCADecoder]
 +
* Media Player Classic
 +
* [https://github.com/OpenCGSS/DereTore DereTore] / [https://github.com/OpenCGSS/DereTore/wiki/HCA-Cipher-Converter HCA-Cipher-Converter] / [https://github.com/OpenCGSS/DereTore/wiki/HCA-Decoder HCA-Decoder] / [https://github.com/OpenCGSS/DereTore/wiki/HCA-Encoder HCA-Encoder]
 +
* [https://www81.zippyshare.com/v/Utfq6H9W/file.html HCA Decoder v1.16]
 +
* [https://github.com/Thealexbarney/VGAudio VGAudio] (supports some encrypted files)
 +
 
 +
=== See Also ===
 +
 
 +
* [[USM Video|USM Video file format]]
 +
* [https://hcs64.com/mboard/forum.php?showthread=22828&showpage=0 Decoding HCA CRI files]
 +
* [https://github.com/vgmstream/vgmstream/blob/master/src/meta/hca_keys.h hca_keys.h]
 
<br/><br>
 
<br/><br>
  
Line 60: Line 74:
 
[[Category:Extension_hca | Extension: hca]]
 
[[Category:Extension_hca | Extension: hca]]
 
[[Category:BMS_None | BMS: None]]
 
[[Category:BMS_None | BMS: None]]
 +
[[Category:XOR encryption]]
 
[[Category:File Format]]
 
[[Category:File Format]]

Latest revision as of 20:25, 3 October 2021

Back to index | Edit this page

HCA

  • Format Type : Audio
  • Endian Order : Big Endian
  • Signature : HCA


Format Specifications

// HCA file format

// big endian

// header
4 bytes (char) - signature // "HCA\x00"
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)

Compatible Programs

See Also