Followed by a 32bit offset field but not sure what's the content from 0x48 to that offset, it's for sure xored with the same 0xac since there are some readable strings there. I suppose it's compressed with some lzss algorithm and this reminds me of some game that used that algorithm with the data of the copy opcode xored with some constant that (if I remember correctly) was just 0xac.
Unfortunately I don't remember what was the game or maybe I'm confusing it with the lzss used in Allegro which uses xor on the flag and repeated characters."
If anyone has any idea of how to go about this, it'd be appreciated. The soundtrack is great! I'm probably going to buy it and just rip the FLAC later, but I wanted to also post this format here for posterity and investigation in case some other game also uses it down the line.
For the sound in SoundData.PAC, no data is obfuscated EXCEPT some sort of "file list" i.e. filenames, positions, metadata & such, as aluigi stated. You just search for "RIFF" headers starting at 0x1FC8. 128 tracks. Use vgm toolbox's (RIFF) WAV extractor.
Thanks, I never would have even thought to do that. I'll try to get that working then. Is there some kind of convenient program that will find the header for me in the future? I didn't see the RIFF here because the stuff in front of it comes out as garbage in HxD.
If you mean "RIFF", then vgm.t -> Advanced Cutter/Ofset Finder -> Presets: RIFF style header. About finding the header, most guaranteed way is to simply examine the file yourself, manually; some "garbage" data (which really isn't) can occupy up to 1 MB (offset 0x100000), and searching through that demands time & patience. Japanese programmers (tend to) like "code optimization" over format standards, so those "garbage" bytes definitely have meaning. Try to visually search for code that does not resemble "garbage", you might find the format you expect. For JP-games (based on experience -do not take as entirely valid), if older than 2004 sound is >90% WAV, some few are ogg. Still have not found (amiga-like) tracker formats for JP games (NIH syndrome?) Good luck.