Audio stream names: read the names banks store; only metadata-backed stems from the search #219
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!219
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/219/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 22:52 UTC · original
holdmysocks:claude/audio-names-4→master· +139 −46 · 6 files · 2 commits · merged 2026-11-24 23:10 UTCFixes the stream names from #208 and #214, following the independent check posted on #208. Part of SIX-101.
The problem. The stream-name search kept a stem when two or more of its variations (
_01,_02, ...) matched a bank's stream ids. Stream ids are only 29 bits, so one chance match of a variation makes the next ones likely to match too. On audio.rpf, shuffled made-up words gave about a third as many kept stems as the real word list. Many of the 8,585 (#208) and 17,335 (#214) names were wrong.Stored names. 874 banks give each stream a name-tag chunk (type
0x5C). It is an embedded resource that holds the wave name as text, next to the name's full joaat.sixng audionow reads a name when two checks pass:This gives 409,881 of the 414,570 streams in those banks, matching the count in the independent check. The names are kept in the audio index, so the index version goes up to 3 and
sixng audio --rescanis needed.Search, for the other streams only. A stem is tried only when its own 32-bit joaat is the name of an audio metadata object.
audio-metasaves those hashes to<work>/index/audio_objects_<archive>.bin. With this check, shuffled words keep 23 bank stems, against 1,236 for the real list. Result: 612 more streams.Totals on audio.rpf:
sixng audioand the GUI Audio page show stored names first. README updated. The tests use synthetic bytes only.Join output.
sixng audionow lists, for each stream: its index in the bank,name_from(storedorsearch) andhash(the full joaat of the name), next to the bank offset and the 29-bit id. On audio.rpf: 409,881stored, 612search, and 1,192,630 streams with no name.@kaoru-maki on GitHub · 2026-11-24 23:31 UTC · original · edited 2026-11-24 23:41 UTC
Thanks for merging this. We checked the Story and Minigame scope you mentioned in #217 at upstream
d7e9bdc(with #219's reader), alongside the stricter #217 parser. We joined by archive, ADAT bank offset and stream index, and checked the stream ID and encoded range. We also verified the original bytes at 15 sampled ranges against the local inputs.The embedded spelling agreed at all 227,247 tagged stream addresses: 225,281 in Story, 9 in regional Story, and 1,957 in Minigame. Both readers found every name in that set, and stream IDs were unique within each bank in these three archives. These counts cover embedded tags. The metadata-backed name search is outside this comparison.