Hi all, im having no clue how to write an script for these files. From the thread https://zenhax.com/viewtopic.php?f=6&t=1116&start=220
Excuse my sorry ass, but im just new at this
This is the format
0x00 - Id, long
now we skip some bytes since theyre useless for this (do this on EVERY file)
0x58 - data block 1 size/offset, gin/snr section begins after this
0x5c - data block 1 + gin/snr section size (audio data begins after this)
skip all the bytes till the offset given in 0x58, Gin and SNR section begins, each sample present in the file has an string of 36 bytes in ths section. It's easy to guess the number of audio files by just doing 0x5c - 0x58 and dividing by 36.
anyways, to the small section here.
0x00 - file format
0x04 - file enumeration (first file is always 00)
0x08 - audio data offset. To get the actual offset in the file, you must add the value you got frmo 0x5c at the beginning to this one
skip 8 bytes
0x14 - random byte is always 01
skip 4 bytes
0x1c - RPM of sample, used for SNR files since they're supposed to be recorded at a static rpm, gin files use a value of 1000
skip 4 bytes
0x24 next audio file string...
Getting to know the size of each audio file is easy substracting the offsets, the only "problem" is getting the size of the last file, it beings in the given offset and goes to the end of the file
When these audio description strings end, the audio data begins.
On another topic from the same thread, is there any way to make quickbms parse data into a text file? On .gin files, there are 2 arrays, which size is specified in the header, every int32 has a value (numerical) and this relates to sound data, what Im needing is just to get all the values together so I can make a graph out of it and see this in depth.
If anyone can give me hand it would be great.