re: the UI sound effects ARE extractable -- retracting "cannot be
extracted", and the tool was in the build all along Two iterations ago I closed Q8 by declaring the SE audio undecodable: Static.slb has no wave boundaries, there is no XACT container anywhere, and I said the index "exists only at runtime" as though that put it out of reach. The disc half of that stands. The conclusion did not. This build of Canary carries a cvar called xma_param_probe, added by this project, whose own comment says it logs each XMA stream's parameters and head bytes so raw sound.pak entries can be matched to real decode params. It has been sitting in the startup CONFIG DUMP of every log I have read this session. Run with it, driving the main menu: a d-pad move spawns a new mono 48 kHz stream of 4 packets / 8192 bytes, and B spawns a different one of 2 packets / 4096 bytes. Searching their logged head bytes in Static.slb finds each at exactly one offset -- 0x1ec0 and 0x0ec0 -- and the two are contiguous, 0x0ec0 + 4096 = 0x1ec0. So the bank is a packed run of whole 2048-byte packets with no delimiters, which is precisely why the seek scan found nothing: there is nothing to find. A wave is (offset, packet count) and nothing else. That splits Q8's binding cleanly. Event -> WAVE is now measured: the port can have the audio. Event -> cue NAME is still a name match on the authors' identifiers, and the page says so. The same run settled something for Q10 too. Sitting on the main menu, TWO stereo 48 kHz streams were decoding simultaneously. bgm-two-stems.md said that observation was what it needed and that this container could not make it; it can, and a music bank's two waves are now measured as simultaneous rather than only inferred. METHOD gets the general lesson, because it cost two iterations: check what instrumentation the local build already has before declaring a question blocked on tooling.
This commit is contained in:
19
docs/re/data/se-cue-runtime-offsets.txt
Normal file
19
docs/re/data/se-cue-runtime-offsets.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
SE cue waves located inside Static.slb by playing them.
|
||||
|
||||
Method: run Canary with --xma_param_probe=true, drive the main menu, and read the
|
||||
per-stream XMA-PARAM lines. Each line carries the stream's first 32 bytes; those
|
||||
bytes are then searched for in Static.slb's 8 353 472 readable bytes.
|
||||
|
||||
event packets bytes channels/rate offset in Static.slb
|
||||
------------------------- ------- ------ -------------- --------------------
|
||||
d-pad move (cursor) 4 8192 mono 48000 Hz 0x1ec0
|
||||
B / back (cancel) 2 4096 mono 48000 Hz 0x0ec0
|
||||
(played before any input) 6 12288 mono 48000 Hz 0x5d6c0
|
||||
|
||||
Each head matched at exactly ONE offset. The first two are contiguous:
|
||||
0x0ec0 + 4096 = 0x1ec0.
|
||||
|
||||
Simultaneously at the main menu, two STEREO 48 kHz streams were decoding:
|
||||
1893 packets / 3 876 864 B and 1919 packets / 3 930 112 B. See
|
||||
structures/bgm-two-stems.md -- this is the runtime observation that the two
|
||||
stems of a music bank play at the same time.
|
||||
Reference in New Issue
Block a user