Hendricks266, on 08 September 2016 - 03:18 PM, said:
As I already mentioned, I spent a bunch of time reverse-engineering PSound and found that it was essentially a hack that got lucky. IIRC, there is at least one sound that PSound did not catch. We needed Nukey to confirm not just that we had all of the sounds, but also to find what their proper sample rate is, and also (IIRC) what their internal ID number is.
Of course you couldn't have got the ID number and various metadata or the euclidean proof you extracted all the files just by relying on PSound, and I see why you would want to be sure you exactly got every bit of available data (especially when doing so from the source files, with no uncompressed RAM helping you out), but I'll be honest from as far as I can reach.
I'm looking at the PMP file with an hex editor right now, I've learned to basically tell VAG patterns when I see them. Each VAG file is comprised of 16 byte chunks in which the second byte is almost always 00h, and it looks like it's communicating the final chunk by writing 01h in its place (these are the loop bits, and all 00h/01h usually means it ain't looping). After that there's a full 16byte chunk of 00h, as VAGs always require them as a kickstart.
On the other hand there are sound files which those second bytes comprise mostly of 02h and that respectively communicate loop start and end by writing 06h and 03h. I have separated some of those and saved them and they all sound perfect when scanned by PSound. They're all basically stored one after another in a sequential uninterrupted way and don't really look like they would be much of a trouble. I assume there must be a header somewhere else, but Nukey and Fox are much more knowledgeable than me since they actually took the time to reverse engineer the game itself. Sorry if it seems like spitting on your three days of reverse-engineering, I was just making sure most of the sounds didn't have complex storing algorithms or anything like that. Please don't spank me.
Fox, on 08 September 2016 - 03:51 PM, said:
There were several sound files PSound missed. The program is simply not reliable.
I see, that sucks. Which ones? I'm curious, did they have any peculiar qualities that would make them elude the ADPCM section of the PMP? I was also trying to reverse-engineer TM's map format back in 2012, but after a while I just quit. Fortunately you guys picked it back up.
By the way, I tried to download DN64's mod a while ago but it all went 404. Did you put them up again or are you incapable of doing so because of legal issues? Just asking.