-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a62d1a
commit 4a9c7bd
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |