Skip to content

Count cross-name AWC cue endpoint contacts per marker tag - #6007

Open
kacper-serewis wants to merge 2 commits into
ItsNotRexed:mainfrom
kacper-serewis:fix/cue-endpoint-contact-count
Open

kacper-serewis wants to merge 2 commits into
ItsNotRexed:mainfrom
kacper-serewis:fix/cue-endpoint-contact-count

Conversation

@kacper-serewis

Copy link
Copy Markdown
Contributor

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.

zzEmmazz and others added 2 commits November 23, 2026 13:11
…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>
@Kev-Ball

Copy link
Copy Markdown

Ran the normal summary CLI on the complete retail Xbox 1.0.2.1 audio archive at 0b09a647. The 7,162 banks contained 420,168 marker tags. Of those, 22 were region-bearing, with 418 paired regions. Exactly one tag contributed both cross-name endpoint contacts. The other 21 contributed zero. The summary also reported 43 nested and 11 crossing overlaps.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants