tooling: read big-endian TADA AWC banks #786

Merged
legacy-code-archaeologist merged 1 commit from upstream-pr/792 into main 2026-11-23 04:27:25 +00:00
legacy-code-archaeologist commented 2026-11-23 03:51:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-23T03:51:13Z.


Change

tools/awc_metadata.py now accepts the big-endian TADA magic in addition to ADAT. In a TADA bank, every 16-, 32- and 64-bit header field is read big-endian, as in the public reader (vgmstream awc.c @ 24ffd6ce, lines 300–318). Single bytes such as the codec ID, and all offsets, are unchanged.

The rule applies to every layout: sound-effect banks with 0x76 or 0xFA format tags, and music banks. Flag bits that were rejected before stay rejected in both byte orders. docs/experiments.md now names both magics.

Follows #583 and #786 (same file).

Verification

At 6282b89 on Windows 11 (build 26100), Python 3.12:

  • out\pe-env\Scripts\python.exe -B tests\awc_metadata_check.py -v: 13 tests OK.
    • The test builders take the byte order.
    • New big-endian cases cover each layout and the CLI.
    • The existing negative controls run in both byte orders.
  • The new tests fail against main.
  • Nine mutations of the tool were each detected before the rebase onto main.
  • tests/docs_links_check.py and tests/bidi_controls_check.py: passed.

Evidence and follow-up

The fixtures are synthetic bytes built in the test (MIT, this repository). No real TADA bank was inspected.

  • I did not include game files, dumps, distribution links or secrets.

AI-assisted: written with Claude Code, precommit review by a fresh agent; checked and submitted by the account owner.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6551880208 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/792). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-23T03:51:13Z. --- ## Change `tools/awc_metadata.py` now accepts the big-endian `TADA` magic in addition to `ADAT`. In a `TADA` bank, every 16-, 32- and 64-bit header field is read big-endian, as in the public reader (vgmstream `awc.c` @ `24ffd6ce`, [lines 300–318](https://github.com/vgmstream/vgmstream/blob/24ffd6ce3e1f34fdebf9f5316d18ad2e162838ce/src/meta/awc.c#L300-L318)). Single bytes such as the codec ID, and all offsets, are unchanged. The rule applies to every layout: sound-effect banks with `0x76` or `0xFA` format tags, and music banks. Flag bits that were rejected before stay rejected in both byte orders. `docs/experiments.md` now names both magics. Follows #583 and #786 (same file). ## Verification At `6282b89` on Windows 11 (build 26100), Python 3.12: - `out\pe-env\Scripts\python.exe -B tests\awc_metadata_check.py -v`: 13 tests OK. - The test builders take the byte order. - New big-endian cases cover each layout and the CLI. - The existing negative controls run in both byte orders. - The new tests fail against `main`. - Nine mutations of the tool were each detected before the rebase onto `main`. - `tests/docs_links_check.py` and `tests/bidi_controls_check.py`: passed. ## Evidence and follow-up The fixtures are synthetic bytes built in the test (MIT, this repository). No real `TADA` bank was inspected. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted: written with Claude Code, precommit review by a fresh agent; checked and submitted by the account owner. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:44:48 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!786
No description provided.