Sound files
The sound driver is Konami’s own, running on the GameCube’s audio hardware: up to 64 voices, 8 groups of loaded banks and 6 streams.
- Where
- sd_intr/grp.pac, sd_intr/SECTL.MRG, sd_strm/str.pac (sd_intr/system.grp unused)
- Codec
- Nintendo DSP-ADPCM (also PCM16 and PCM8 in the format)
- grp.pac
- 60,596,544 bytes, 189 banks
- str.pac
- 171,233,472 bytes of streams
- SECTL.MRG
- 248 cue slots of 0x100 bytes
grp.pac: banks
A 0x300-byte header of 192 bank offsets (189 used) is followed by the banks. Each bank has a 0x6020-byte header (size, sound count, 256 sound entries of 0x60 bytes) and then its ADPCM data.
| Bank | Content |
|---|---|
| 0 | the six “music layers” 0x8700-0x8705: the battle won, battle lost and mission won jingles, left and right (names from the research sheets; in the code, 0x8704/0x8705 also plays when a battle is won outright, and 0x8700/0x8701 when a battle is decided on score (won, lost or drawn) and when a mission script gives a monster) |
1 to 0xBB |
monster id + 1 (banks 0xB8-0xBB have no sounds) |
0xBC |
the common bank: menus, skill-card sounds, cut-scene sounds and 30 voice clips (79 sounds) |
A sound entry holds the sample rate, loop flag, start, loop and end addresses (in nibbles), the 16 ADPCM coefficients, the predictor/scale and history values, priority, volume, pan (0 left to 0x80 right) and surround. system.grp is one more bank in the same layout, which the game never opens.
str.pac: streams
A 0x160-byte header of 88 stream offsets (84 used), then the streams, each with a 0xE0-byte header holding two sound entries, of which the driver reads the first. A piece of music is a pair of mono entries, 2n left and 2n + 1 right. Streams play out of a ring of two 256 KB pieces in audio memory that the driver refills.
SECTL.MRG: cues
248 slots of 0x100 bytes: monsters 0-0xBA, then 61 item (skill card) slots, cards 0-60. 23 of them hold no cues, including the last eight (cards 53-60), and so do monster slots 0xB7-0xBA. Each slot has 64 four-byte cues: type (4 bits; 0xF ends the list), mode (2 bits), the tick of the attack effect at which to play (10 bits), and the sound (0x9000 + index in the actor’s bank).
Sound ids
| Id | Meaning |
|---|---|
0x1000-0x1044 |
run sound event script n: music and jingles from str.pac, fades and volume ramps |
0x2000-0x2044 |
the same scripts, with the streams under the other master volume; the game never uses them |
0x9nbb |
sound bb of group n’s bank (menu sounds 0x9000-0x9020 in group 0: 0x9001 cancel, 0x9002 decide, 0x9006 cursor, 0x900A error) |
0x8nbb |
the same with a second volume (the looping music layers 0x8700-0x8705) |
0xFnnn |
timed random sequences (none exist) |
Group 0 holds the common bank, group 7 the music layers, and groups 1-6 the six monsters of a battle.
Sound event scripts that nothing plays: 0x1011, 0x101B and 0x1024 (the night versions of three map themes; their streams still play through the day ids), 0x102E, 0x102F, 0x1038, 0x103B, 0x103C and 0x1044. Fourteen ids are empty lists.
Evidence
The sound driver is part of the decompiled code. Tom and ZZNap1’s research sheets (see Credits) first showed that some sound events play no track of their own (they list them as “Nothing”); the event scripts show that they are fades and volume ramps. Decoding with each sound’s own coefficients and history reproduces the title theme as the game plays it in the Dolphin emulator at a waveform correlation of 0.9997.