MLTDTools icon indicating copy to clipboard operation
MLTDTools copied to clipboard

HCA decrypt result inconsistent with libcgss

Open nulla2011 opened this issue 4 years ago • 3 comments

There's a little bit difference between the wave file extracted by HcaDec.exe in this repository and the wave file extracted by hca2wav.exe in libcgss . I put them in two tracks , invert the phase of one of them and found the differences is mostly above 7kHz frequency.

image

So which one is correct ?

btw , this project's decrypt result is the same with DereTore .

nulla2011 avatar Sep 27 '20 12:09 nulla2011

Yes MLTDTools still uses DereTore's decoder, which is a direct port of the original decoder in C++. libcgss integrated some of Ishotihadus' improvements (see his repo). So... I guess Isho's is correct in high frequency.

hozuki avatar Oct 03 '20 15:10 hozuki

OK. I made a comparation. The result of libcgss' latest version is the closest to the CD version. 39. But I found it is almost monaural in high frequency, I dont know why.

nulla2011 avatar Oct 04 '20 06:10 nulla2011

BTW for a mathematically correct encoder/decoder please refer to VGAudio.

hozuki avatar Oct 07 '20 07:10 hozuki