Commit Graph

23 Commits

Author SHA1 Message Date
bnnm
39dfdee9e4 cleanup: function defs, unused vars 2021-07-29 22:29:49 +02:00
bnnm
9ec4877ee7 Small HCA optimization 2021-03-21 00:51:24 +01:00
bnnm
d4209c2d43 Greatly improve HCA key detection 2021-03-14 16:28:35 +01:00
bnnm
de20926203 Improve HCA joint stereo 2021-03-10 22:17:56 +01:00
bnnm
ae909de292 Improve HCA v3.0 2021-03-10 22:17:15 +01:00
bnnm
8dcc485583 Add partial support for HCA v3.0 (ongoing) [Uma Musume (Android)] 2021-03-07 23:20:21 +01:00
bnnm
b9d01e3176 Improve HCA key detection in rare cases [Ryu ga Gotoku Online (Mobile)] 2019-07-07 15:26:15 +02:00
bnnm
a960a12e58 Fix some compiler warning/errors with libs disabled 2018-12-01 18:34:23 +01:00
bnnm
37c7717cc2 Relax HCA validation for rare bad frames 2018-11-11 23:59:55 +01:00
bnnm
ec0043bf6b Improve HCA key testing 2018-10-13 19:50:42 +02:00
bnnm
0c53449df1 Fix ciph-1 HCA and add errors [DQ Monsters: Super Light (Mobile)] 2018-10-13 13:02:40 +02:00
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