hozuki / libcgss

libcgss is a helper library for THE iDOLM@STER Cinderella Girls Starlight Stage (CGSS/DereSute/デレステ). It currently supports HCA audio decoding and ACB exploring. It also applies to other games like THE iDOLM@STER Million Live! Theater Days (MLTD/MiriShita/ミリシタ).
Other
94 stars 8 forks source link

[hcacc] Fails to change crypto type for hca files that loop #1

Closed ActualMandM closed 7 years ago

ActualMandM commented 7 years ago

For some reason, when converting looped hcas with hcacc, it doesn't change properly. It only changes a few bytes.

Daytona USA's Sky High under Crypto Type #1 That hca file under Crypto Type #0

hozuki commented 7 years ago

I'll look into it. Thanks for the feedback. :)

hozuki commented 7 years ago

OK I got it. I wrote a condition to prevent converting looped audio. At the time when I wrote that I wasn't sure if looping is connected with encryption. And a tip for decoding looped audio: you can use kawashima's "streaming" extension (KsEnableExtension, KsPrepareExtensions, KsExtStreamingSeek, KsExtStreamingRead, see here). The "extension" is ugly and I'm thinking of refactoring the API. 😟