http://wiki.xentax.com/index.php/Wwise_ ... RC_section
Now, I can understand the identifier of the sections, that part is simple enough, and I can manually find the length of a section by selecting the start of it, up to the start of the next identifier. But, what confuses me is everything actually inside the section. The HIRC is the biggest thing I'm lost on. For the general format of the HIRC, it says this:
48 49 52 43 -- HIRC
uint32: length of section
uint32: number of objects
FOR EACH (object) {
byte: single byte identifying type of object
uint32: length of object section (= 4-byte id field and additional bytes)
uint32: id of this object
byte[]: additional bytes, depending on type of object and section length
} END FOR
I understand the first portion just fine - that is the identifier of the section, HIRC, where the section starts. But the thing that is really throwing me off is the unit32. What exactly does it mean here by "uint32: length of section" and "uint32: number of objects"? I know that uint32 is an unsigned int that is 4 bytes long, but I don't know how to apply that here to find the length of the section and the number of objects, not to even mention all the rest at the moment. I have the same issue with the BKHD, where it says "uint32: length of section", "uint32: version number of this SoundBank", and "uint32: id of this SoundBank" (though what I'm trying to tinker with isn't in there, it's the HIRC, but just as a means of figuring it out, I've been looking at it). I simply have no idea what this means, here, I don't know how to get the length, or the id, or anything, really, from uint32.
If it wasn't obvious enough, I'm new to playing with .bnks, which is why I've tried researching so much on it, but I am just at a complete loss with the uint32 and how to find - or use - that whatsoever. I'm used to .lua and (rudimentary).xml coding, but reading this is just out of my spectrum at the moment. If anyone has any tips, advice, or any additional resources, I'd really appreciate it. Thank you.