When a scene starts and its music and sound effects load, the game builds a file path out of a small set of extensions still sitting in the executable - .dpk, .spk, .MAP, .PCH. Are these exotic sound formats to reverse? No. The per-scene .dpk sound pack is an ordinary VAB + SEQ pair in a chunked wrapper, and .MAP / .PCH are not sound at all: they are a field scene's walkability map and walk-on trigger file.
SCUS_942.54 at RAM 0x8007B380 (file offset 0x6BB80).dpk payloads are the sound_data2 PROT family (0877..0885); bse.dat is the battle SFX descriptor bank, loaded from battle init (FUN_800513F0), not at bootlegaia_container_formats::sound_pack (extract returns the reconstituted VAB + SEQ); walker parse_streaming_with(.., StreamTerminator::TypeTwo)0877..0885.dpk sound pack is a VAB + SEQ bundleA per-scene sound pack is a VAB followed by a SEQ in a streaming-chunk container - not a novel .MAP / .PCH / .spk layout. Each chunk is [u32 (type << 24) | size][payload, 4-padded]; the walk ends on the type-2 chunk, which is itself the SEQ.
| Chunk type | Payload | Magic |
|---|---|---|
0 | VAB header section | pBAV (0x5641_4270 LE) |
1 | VAB sample section (SPU-ADPCM / VAG waveform pool) | - (raw samples) |
2 | SEQ (the stream terminator) | pQES |
total_size equals chunk[0].size + chunk[1].size. Holds across 0877–0885 (PROT 0877: 0x2820 + 0x1BA90 = 0x1E2B0).0x02 chunk (non-zero size) where DATA_FIELD ends on a zero-size header - so the DATA_FIELD parser mis-reads a .dpk. Use StreamTerminator::TypeTwo.| Offset | Bytes | Meaning |
|---|---|---|
0x8007B380 | 12 bytes | Per-extension flag/mode metadata table: 00 01 FF FF FF FF 00 00 00 02 00 00. |
0x8007B38C | "sound\" | Path prefix for streaming-asset loads. |
0x8007B394 | ".spk" | SPU sample bank. |
0x8007B39C | ".LZS" | Compressed wrapper (per-file). |
0x8007B3A4 | 8 bytes | Not sound data - the per-character equipment-swap selector bytes read by a graphics-side routine; adjacent in BSS but unrelated (trap below). |
0x8007B3AC | "bse.dat" | Battle SFX descriptor-bank file name (loaded at battle init). |
0x8007B3B4 | ".dpk" | Per-scene sound pack - the VAB + SEQ bundle above. |
0x8007B3BC | ".MAP" | Not sound. The field map DATA\FIELD\<scene>.MAP, loaded by FUN_8001F7C0. |
0x8007B3C4 | ".PCH" | Not sound. The walk-on trigger sidecar <scene>.PCH, loaded by FUN_8001F7C0. |
0x8007B3CC | ".LZS" | Duplicate, fallback. |
0x8007B3D4 | ".pac" | Per-scene generic pack. |
0x8007B3DC | "STR" | Streaming audio (raw PSX .STR containers). |
Trap: a third routine reads the 0x8007B3A4/0x8007B3A8 bytes and looks like a sound consumer, but it is the character-TMD equipment-conditional group-transform swap - a graphics function. See character-mesh and how we know.
.MAP and .PCH are field filesThe cluster is a run of short path strings several loaders share, not a sound table. .MAP and .PCH are referenced once each, by the field-file loader FUN_8001F7C0. Its dev branch builds DATA\FIELD\ + scene name + .MAP into the caller's buffer, the same stem + .PCH into buffer +0x12000 (zero-filling one sector when the open fails), then the scene's efect.dat. Its retail branch (0x8001F9A4..0x8001F9B4) reads 0x28 sectors from the scene block in one call: the 0x12000-byte field map, the one-sector walk-on trigger sidecar and the prescript after it. Both files are on the retail disc; neither is a PsyQ SoundArtist intermediate.
The other strings: .spk is built only on the dev branch of FUN_8001FC00; the two .LZS belong to the field-load step FUN_80020118 and the transition streamer FUN_80021934; .pac to FUN_800255B8.
bse.dat master-bank headerBattle init loads bse.dat into a 0x1800-byte buffer and parks the record-table pointer at gp+0x678 (0x8007B990); the buffer slot itself is repointed at every field load. A single u16 at offset +2, rounded down to even, is the byte offset of a second section:
The loader computes gp[0x678] = base + (word@2 & ~1) - a round-to-even byte offset, not a record-count divisor.
Reading that split as two sections overstates it: @2 is 4 in both retail carriers, so the "second section" is simply the record table and nothing precedes it but the header. What follows the table in entry 888 belongs to a different file - a foreign VAB tone table left in the sector. The pointer indexes the battle-loaded bank, not the per-scene .dpk. The records use the SFX descriptor columns, for cue ids ≥ 0x200.
Both path builders carry a debug-flag carve-out (_DAT_8007B8C2):
0x37A = extraction 888, which is bse.dat rather than the .dpk, plus param_1 + 5 for the per-set pack.h:\main\bg\domepack\<name>.dpk path through a helper that is strcpy, a dev-station host trap (break 0x103), then fseek/fread/fclose. Retail hardware cannot service it.Only the retail branch runs on a real disc; the dev branch is a build-time artefact whose paths are not in the filesystem. The same split appears in the asset loader, so it is a pattern that repeats across loading subsystems.
| Function | Address | What it proves | Dump |
|---|---|---|---|
Sound init / .dpk loader | FUN_8001FA88 | Allocates the 0x1800 buffer at _DAT_8007B8D0, loads bse.dat, derives the section-B offset from +2; assembles the dev .dpk path from the template at 0x800105C8; retail branch loads PROT index 0x37A | funcs/8001fa88.txt |
| Streaming-asset path builder | FUN_8001FC00 | Builds paths under the sound\ prefix; the XA / .pac / STR consumer | funcs/8001fc00.txt |
| Chunk walker (consumer) | FUN_8001FE70, called by FUN_800513F0 on the loaded buffer | [type|size] chunk walk, advance (size & ~3) + 4, type-2 terminator; type-1 → TIM upload on the graphics walk | funcs/8001fe70.txt, funcs/800513f0.txt |
| Not-a-sound-consumer trap | FUN_8001EBEC | Reads 0x8007B3A4/0x8007B3A8 as equipment-swap selectors against DAT_8007C018 TMD pointers - a graphics routine | funcs/8001ebec.txt |
| Locator sweep | ghidra/scripts/find/find_sound_path_builders.py | These are the only SCUS functions touching the cluster | - |
| Disc check | PROT 0877..0885 | PROT 0877 walks as [0: 0x2820][1: 0x1BA90][2: SEQ]; 0x2820 + 0x1BA90 == 0x1E2B0 = the VAB's declared total_size; verified across 0877..0885 | - |