Cutscenes: audio banks and master timelines (#516) #528
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!528
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-528"
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-28 03:42 UTC · original
holdmysocks:claude/cutscene-audio-banks→master· +486 −12 · 6 files · 1 commits · merged 2026-11-28 03:49 UTCSummary
Reproduces issue #516 on our copy and wires both parts into
sixng cutscenes.Audio banks. With the archive's audio index, each scene gets its bank. A bank counts when it holds two or more of the streams
joaat("<name>.<channel>") & 0x1FFFFFFF(channelsc,l,r,ad,ls,rs,music.l,music.r) and no other bank does. Names are tried in this order:_pN/_tNN/_xN;db646fb2, member52c09a55), dropping leading words until a name has a bank;Each scene reports the name, its source, the bank offset and each channel's stream id and length.
Master timelines. Scene files with a start-time map keep their timeline in the catalog, including masters without object records. The catalog version goes to 5, so the first run rescans. Start ids resolve through the id map to a
fwAnimSceneReferenceSectionData, either directly or throughfwAnimSceneCompositeSectionData(its id9a3e57d2, else itssectionIds). The catalog also stores each scene file's audio names.placements: master, start, end (the next start), section andbank_time(the start minus the master's earliest start).master_audio).master_timelinestotals and per-source bank counts.The struct and member names come from vihook's
par_names.txt(MIT). The names are credited in THIRD_PARTY_NOTICES.md; no part of that file is included.README: the Cutscenes section explains both parts and gives the counts.
Validation
air_tail_int.c/.l/.r/.ad);<mission>_<scene>audio name);cargo testpassed locally on Windows for sixng-core and sixng-cli, plus the sixng-gui scenes tests.cargo check --workspace --releaseis clean.Scenes get their audio bank from joaat("<name>.<channel>") & 0x1FFFFFFF stream ids (scene name, name without suffixes, scene-file audio name or the master that places them). Scene files with a master timeline keep it in the catalog (version 5), and scenes list where masters place them, with the start on the bank clock. Struct and member names from vihook's par_names.txt, credited in THIRD_PARTY_NOTICES.md.