EvilEngine/Sound Format: Difference between revisions

Gamecube movie/incred/rats sample header
mNo edit summary
(Gamecube movie/incred/rats sample header)
Line 9:
|subtitle=Sound/Streaming Sound
|type=[[Binary]]
|games=Scooby BFBB TSSM Incredibles ROTU RatProto}}
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
 
===GameCube===
Line 28:
|subtitle=Sound Info
|type=[[Binary]]
|games=Scooby BFBB TSSM Incredibles ROTU RatProto}}
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
 
===GameCube (Night of 100 Frights/Battle For Bikini Bottom)===
Line 55:
|}
 
===GameCube (Movie Game/Incredibles/Rise of the Underminer/Rat Proto)===
In those games, the SNDI contains not only the sound headers but also the entirety of the sound files themselves.
 
Line 110:
! Offset !! Type !! Variable !! Description
|-
| 0x00 || short || size || Always 126 if mono, 172 if stereo
|-
| 0x02 || char[30] || soundName || Sample name in ASCII. Since each sample actually refers to multiple sounds and this is usually different from the actual sound names, this is likely leftover data and unused.
Line 122:
| 0x2C || int || loopEnd || End of loop in sample. Only refers to first sound in list. This is probably unused as each sound would require its own loopEnd.
|-
| 0x30 || int || sampleHeaderMode || Always 33558561 if mono, 34078785 if stereo
|-
| 0x34 || int || deffreq || Always 32000. Does support other frequencies.
|-
| 0x38 || short || defvol || Always 255
|-
| 0x3A || short || defpan || Always 128 if mono, -1 if stereo
|-
| 0x3C || short || defpri || Always 255
|-
| 0x3E || short || numchannels || Always 1 if mono, 2 if stereo
|-
| 0x40 || float || minDistance || Always 1.0