User Name
Tags:
bold
: [b]bold[/b]
italics
: [i]italics[/i]
emphasis
: [em]emphasis[/em]
underline
: [u]underline[/u]
small
: [small]small[/small]
Link
: [url=http://www.google.com]Link[/url]
[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message
@furrybob - vgmstream's HCA decoder will (AFAIK) always decode even with an invalid key, but I observed there would be a bunch of clipped samples (0x8000/0x7FFF). So for each key I just decode frames (max ~100) until a number of non-blank samples (~10*1024) and see how many clipped. The key with lowest number gets picked. Not super great but seems fast enough and worked with all my files. Usually the correct key gets 0 clips and gets immediatedly selected. I guess a wrong key could still get 0 clips in the first frames so the values can be adjusted though. (see [url=https://github.com/kode54/vgmstream/blob/master/src/meta/hca.c#L94]here)[/url]. I tried to check VGAudio for inspiration but the whole ReadSpectralCoefficients was way beyond me, so I just devised this funny thing.
HCS Forum Index
Halley's Comet Software
forum source