notes on sounds

This commit is contained in:
Nahuel Rocchetti 2024-06-23 23:25:29 -03:00
parent 7a62d1afbc
commit 4a9c7bd8ea
2 changed files with 49 additions and 0 deletions

34
Notes/Sounds.txt Normal file
View file

@ -0,0 +1,34 @@
Sound research
Track Settings Type: 0x0B9EB87E
Binary file Type: 0x7B1ACFCD
Track Settings file:
XML with following properties in order:
Sample Rate - eg 32000
Unknown string - Always "Track"?
There is also a binary resource with the same instance id as the Track Settings file. Does not seem to contain audio data. Maybe references the actual sound resource?
These sounds should be loaded as AudioAssets so that they can be played like any other sound by TSAudioSource
Replacing the Track settings file with an MP3 triggers a GetSoundDefinition error
Replacing the binary file with an MP3 triggers a GetHitList error
0x7B1ACFCD Must be a HitList resource. Likely contains references to sounds.
Binary file 0x7B1ACFCD:
4 bytes: Always 56?
4 bytes: Count
For Count loop
References to MP3/XA/etc audio assets
4 bytes: Instance Lo
4 bytes: Instance Hi
End loop
I wonder if the track settings file is optional? Seems odd to be able to override the sample rate and such when they're provided in the sounds themselves already.

15
Notes/hitlist.md Normal file
View file

@ -0,0 +1,15 @@
# HitList resource
This resource is played by the game like any normal sound, but instead of having sound data it contains references to other audio files that will be randomly picked on playback.
They tend to have a PropertySet file alongside them with the same Instance and Group IDs, of Type ID 0x0B9EB87E (Labeled Track Settings by SimPE) which seems to provide data about the sound such as Sample Rate. and references to other Resources.
## Format
```
4 Bytes: Version? Always 56
4 Bytes: Sound count
Loop for Sound Count
Each entry is a reference to an actual audio file, such as an MP3/XA/WAV/etc.
4 Bytes: Instance ID Low
4 Bytes: Instance ID High
End Loop
```