Audio meta: bounded lookahead when placing the bank list #228

Manually merged
github merged 2 commits from gh-pr/228/head into gh-pr/228/base 2026-11-26 20:19:45 +00:00
Owner

@⁠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 UTC

Placing 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.
  • A new case in bank_list_align: a same-size bank far past the limit is not assigned.
  • README: the story-pack container count, plus the stored stream names in the story pack (225,281 of 231,816) and the minigame pack (1,957 of 4,322).

Tests: cargo test --release --locked passes, and so does cargo check --release --locked --no-default-features -p sixng-cli -p sixng-gui.

**@⁠holdmysocks** on GitHub · 2026-11-25 00:32 UTC · [original](https://github.com/holdmysocks/SixNG/pull/228) `holdmysocks:claude/audio-names-5` → `master` · +32 −6 · 2 files · 2 commits · merged 2026-11-25 02:01 UTC Placing 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. - A new case in `bank_list_align`: a same-size bank far past the limit is not assigned. - README: the story-pack container count, plus the stored stream names in the story pack (225,281 of 231,816) and the minigame pack (1,957 of 4,322). Tests: `cargo test --release --locked` passes, and so does `cargo check --release --locked --no-default-features -p sixng-cli -p sixng-gui`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:43 +00:00
github manually merged commit bb347df88f into gh-pr/228/base 2026-11-26 20:19:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.