Hi everyone, seems like I thought I had talked bout .tmx formats from pro street and undercover games but turns out I didn't, anyways, sorry for being sooo late as the interest is probably dead by now
the .tmx format is used by NFS undercover and pro street, it's basically a container file (audio samples) + some information in the header. It contains either GIN files with very slight differences and/or a "new" format which is named "SNR" in the files (I don't know if it is encoded using the same abk codec or not)
The small difference in the gin files is that some of them don't start in the sample 480 like all the ones from NFSMW did. They are random now, some of them start in sample 662, 720, etc. I have tried making a gin file and replacing it in the tmx but they turn out to have different sizes even though the length, sampling rate is all the same. It also killed the sound in game for me.
The header. It starts with a sequence of bytes that appear 3 times across the file. It might be assembly code or else. The first sequence has a table of offsets after it.
The number of offsets is defined fr bytes 28-31 (green box in the pic). Since some of them seem to point at blank spaces of the file I will name the ones with some meaning after a quick look
Then before it, it has the offset of a small sub section where the audio files are listed. This lists the files in order and have the offset for each file, they all also some sort of value, which I don't know what it is, but it is a value in the range of 17,xxx, it is not shown in the pic.
2 offsets more which point to a blank space in the file.
2 offset point to a float value which is near the maxRPM and minRPM values used to build gin files.
Then after those, it's pretty much a guess game for me, this after looking at the file for 15 mins at most.
It also has a section where there's some bytes but their meaning is unknown to me, I have uploaded some samples