tooling: read big-endian TADA AWC banks #792

Manually merged
github merged 1 commit from gh-pr/792/head into gh-pr/792/base 2026-11-26 22:19:05 +00:00
Owner

@⁠legacy-code-archaeologist on GitHub · 2026-11-23 03:51 UTC · original
legacy-code-archaeologist:audio/awc-big-endian → main · +120 −51 · 3 files · 1 commits · merged 2026-11-23 04:27 UTC

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

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-23 03:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/792) `legacy-code-archaeologist:audio/awc-big-endian` → `main` · +120 −51 · 3 files · 1 commits · merged 2026-11-23 04:27 UTC ## 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)
Accept the TADA magic in tools/awc_metadata.py and read every 16-, 32-
and 64-bit header field in that byte order, as the public reader's
header parser does. Codec bytes and all offsets are unchanged.
Sound-effect, 0xFA and music banks share the rule; the rejected flag
bits stay rejected in both byte orders.

The test builders take the byte order; new big-endian cases cover each
layout, the CLI and the existing negative controls. No real TADA bank
was inspected.

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:19:04 +00:00
github manually merged commit 6282b89603 into gh-pr/792/base 2026-11-26 22:19:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.