Commit Graph

12 Commits

Author SHA1 Message Date
bnnm
77e1b597a2 Fix clHCA lib v1.1 ATH scaling [El Shaddai (PS3)] 2018-09-02 16:07:59 +02:00
bnnm
9c0db7cae3 Improve HCA/clHCA key detection
- Only test keys when file is encrypted
- Add clHCA_TestBlock to test a frame with the current key
- Move some key detection code to hca_decoder.c and simplify hca.c
detection
- Decrease number of test frames due to increased accuracy of
clHCA_TestBlock
2018-09-02 16:00:58 +02:00
bnnm
fd52fe0e95 Clean clHCA lib 3 (API)
- rename clHCA_DecodeSamples16 to clHCA_ReadSamples16 since it isn't
really decoding
- divide clHCA_Decode into clHCA_DecodeHeader and clHCA_DecodeBlock to
clarify usage
- unify clHCA_IsOurFile0/1 since one would need to call
clHCA_DecodeHeader right after it anyway
- add clHCA_SetKey for easier key handling
- adapt vgmstream wrapper
2018-09-01 20:28:00 +02:00
bnnm
a38e3a4878 Clean clHCA lib 2 (cleanup)
- Removed some overdone optimizations for clarity (don't seem to save
any substantial time when decoding +150 files)
- Remove unnecessary structs
- Treat keycode as a single 64b value
- Lib info and other tweaks
2018-09-01 17:37:07 +02:00
bnnm
98636e5f2a Clean clHCA lib (comments, renames, api, code)
- Properly identify variables/functions/etc, all thanks to
Thealexbarney's excellent decoder analysis in VGAudio
- Simplify code to standard C, rather than asm-style decompilation
- Rename/tweak functions to be more C-like
- Minor fixes (pointer tests, incorrect values, etc)
- All was carefully tested, decoded files should be byte-identical to
previous versions
2018-09-01 16:09:59 +02:00
bnnm
9a2a2e4c2e Export extra sample values in clHCA_getInfo 2018-08-29 20:48:35 +02:00
bnnm
2807d2fbab Fixed minor compiler warnings 2016-12-27 17:13:22 +01:00
Chris Moeller
94309292d9 Remove C99-isms for MSVC 2010. 2016-10-28 16:50:39 -07:00
Chris Moeller
e67642db30 Ignore relative volume adjustment, as criware seems to only pass it on to the user of the library. 2016-06-29 23:08:27 -07:00
Chris Moeller
4c75e6a5bc Updated HCA decoder. 2016-06-29 19:56:20 -07:00
Chris Moeller
355ed06781 Made HCA decoder endian safe. 2016-06-28 16:25:08 -07:00
Chris Moeller
33563f4e7c Add HCA support. 2016-06-28 00:20:37 -07:00