tooling: read 0xFA sound format tags in AWC sound-effect banks #786
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!786
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/786/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?
@legacy-code-archaeologist on GitHub · 2026-11-23 03:18 UTC · original
legacy-code-archaeologist:audio/awc-sfx-fa-header→main· +63 −10 · 3 files · 1 commits · merged 2026-11-23 03:47 UTCChange
tools/awc_metadata.pynow accepts either a0x76or a0xFAsound format tag per sound in a sound-effect bank. Before, it rejected any bank that used0xFA. Both tags are read as in the public reader's0x76and0xFAcases (vgmstreamawc.c@24ffd6ce, lines 488–527):0x76) or 19 (0xFA);A sound must have exactly one format tag. A sound with
0x76plus0xFA, or with two0xFAtags, is now rejected. Before this change,0xFAwas ignored, so a sound with0x76plus0xFAwas accepted. The public reader keeps the last format tag of a sound in that case. Music banks are unaffected.Builds on #583 (same file). Opened after it landed.
Verification
At
7dd70a2on Windows 11 (build 26100.9168), Python 3.12.10:out\pe-env\Scripts\python.exe -B tests\awc_metadata_check.py -v: 12 tests OK.test_fa_format_tagsreads a two-sound bank with one0xFAand one0x76tag through a metadata-only read guard.0x76codec offset of the0xFAtag, so reading0xFAlike0x76is detected.0xFAtag,0x76plus0xFAon one sound, and two0xFAtags on one sound.0xFAcodec offset, the0xFAminimum length, and accepting more than one format tag.tests/docs_links_check.pyandtests/bidi_controls_check.py: passed.Evidence and follow-up
The fixture is synthetic bytes built in the test (MIT, this repository). No local bank with
0xFAtags was inspected.docs/experiments.md#awc-sound-effect-format-metadatactest --preset dev --no-tests=error -R '^audio_awc_metadata$' -VChecklist
AI-assisted: written with Claude Code, precommit review by a fresh agent; checked and submitted by the account owner.
🤖 Generated with Claude Code