Repository navigation
Count cross-name AWC cue endpoint contacts per marker tag - #6007
Open
kacper-serewis wants to merge 2 commits into
Open
kacper-serewis wants to merge 2 commits into
kacper-serewis wants to merge 2 commits into
Conversation
…cord by record (ASSET-320) docs/rsc8_audio.md read the near-equal start/end counts on five cue names (196/197, 101/101, 54/54, 49/49, 20/19) as region pairs and labelled it a hypothesis, because the split was counted and not matched. pair_marker_regions() matches them: inside one 0xbd tag, a pair is a start whose next record of the same name is an end at the same or a later offset; every other record of such a name is an exception. Every scan summary gets a marker_regions block (per name hash: starts, ends, pairs, exceptions by kind, pair lengths; pairs per tag; overlaps between names; where each exception sits in its tag). Counts, sample offsets and 32-bit hashes only. Measured over all of audio.rpf (7,162 banks, 420,168 0xbd tags, 781,350 records): 841 region records in 22 tags, 420 start, 420 end, one third value; 418 pairs, 20 of 22 tags pair completely, 5 exceptions in two tags, none at an edge of its tag. The other three archives with ADAT banks have none. Tests build their records and banks by hand. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Ran the normal summary CLI on the complete retail Xbox 1.0.2.1 audio archive at I checked the entire per-tag vector in scan order against a separate enumeration using the #5518 parser: for each region-bearing tag, enumerate every unordered pair of nonempty, differently named regions and compare both end-to-start orientations. All 22 entries and the total agreed. CPU only, CachyOS, AI-assisted. |
1 task done
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item AWC-CUE-ENDPOINT-CONTACT, claim on #5934.
Depends on: #5518
The normal marker_regions summary now reports endpoint_contacts_between_names with a total and counts in tag scan order. A pair contributes once when two nonempty regions of different names meet end-to-start in the same tag. Equal timestamp ties count all eligible pairs regardless of record order. Empty intervals contribute zero. The nested and crossing counters retain their existing definitions and code.
The change on top of #5518 is commit 0b09a64. The public fixtures are synthetic.
AI-assisted. Windows, AMD Ryzen 5 9600X, CPU only (GPU and driver unused). All 47 tests passed with
python -I tests/test_rsc8_audio.py, including an unordered-pair oracle covering all 435 pairs on four ticks across three names and a multi-tag scan with two contacts. The 101 cached exported banks checked contained zero region-bearing tags. The earlier independent whole-package count of two contacts was not remeasured here.