Skip to content

Commit

Permalink
notes on sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyDuchess committed Jun 24, 2024
1 parent 7a62d1a commit 4a9c7bd
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Notes/Sounds.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 0 deletions Notes/hitlist.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 4a9c7bd

Please sign in to comment.