Audio meta: bounded lookahead when placing the bank list #228
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!228
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/228/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-25 00:32 UTC · original
holdmysocks:claude/audio-names-5→master· +32 −6 · 2 files · 2 commits · merged 2026-11-25 02:01 UTCPlacing the bank list on the story pack gave only 1,380 of its 63,861 banks a container. Its 68,784 entries include many whose banks are in other archives, and every bank the sound files pin sits near the start. With no limit on the gap fill, an entry with no bank here matched a far bank of the same size and skipped every bank before it.
The gap fill now looks at most
LOOKAHEAD(128) banks past the last one placed.pack/story000/story000.rpf: 59,395 banks get a container (1,380 before). 58,512 of the 59,303 entries placed go to the very next bank.audio.rpf: 5,942 banks (5,943 before). The same 1,177 are named.bank_list_align: a same-size bank far past the limit is not assigned.Tests:
cargo test --release --lockedpasses, and so doescargo check --release --locked --no-default-features -p sixng-cli -p sixng-gui.