tooling: inventory bounded AWC sound-effect metadata #300
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/305"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:38:01Z.
Change
The resource report identifies the outer package archive by its signature. This adds a bounded audio metadata reader for a caller-supplied ADAT bank range. It reports the number of sounds and groups their recorded sample counts by sample rate and numeric codec ID. The reader validates tag ownership and extents before accessing each 32-byte sound format header.
The supported profile is little-endian v1, flag word
0xff000001or0xff020001, with a nonempty data tag and a 0x76 format tag per sound. These field definitions are available in the pinned vgmstream reader. This implementation uses the repository's existing raw range reader and adds no dependency. The experiment gives the CLI and profile limits.Verification
Commit
77b2bbe1e373cc46aaf82bf50b66a81f11691240onb53bfb0b6489398aba7a81f3761e2d56aaa00ccf, Windows x64 with Python 3.12.python -B tests/awc_metadata_check.py MetadataChecks.test_commandfailed before the implementation because the inventory command was absent (exit 2). The same command passes on this commit.python -m venv out/pe-env,out/pe-env/Scripts/python.exe -m pip install -r requirements-dev.txt,. ./tools/dev.ps1, andcmake --preset devsucceeded.ctest --preset dev --no-tests=error -R '^(audio_awc_metadata|resource_range_controls|docs_links)$' --output-on-failurepassed all three tests.git diff --check HEAD^ HEADpassed.Evidence and follow-up
The original MIT-licensed fixture packs three synthetic sounds with two codecs, two sample rates and physically interleaved tags. The command groups their counts and sample totals. A guarded stream returns at most three bytes per read and raises on any request outside the header tables and format metadata. The controls cover a format tag aliasing audio data, a tag extending beyond the supplied range, damaged stream ownership, unsupported flags, and the stream-count budget.
A private inspection of one package used thirty evenly spaced 2 MiB windows to locate aligned ADAT markers. Three hits fit the documented profile. The reader reported 563, 603 and 176 streams, all with 48,000 Hz and numeric codec ID 11. For this observation the supplied extents ended at the greatest declared tag end. Archive directory membership, a codec name and playback remain unverified. No local assets are included.
Checklist
This contribution was AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T21:58:39Z.
At
77b2bbethe merge conflicts are inREADME.md. Keep the AWC capability row alongside the descriptor-key lookup added in #298.Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T22:04:35Z.
The README at
6543f1ekeeps the AWC capability row and the texture descriptor-key lookup from #298. I also retained the AWC and SGD5 checks in CTest and Linux CI when #315 landed. All five selected CTest cases passed locally, and all three CI jobs passed on this commit.@codex review
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T22:07:44Z.
Codex Review: Didn't find any major issues. Another round soon, please!
Reviewed commit:
6543f1e500ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T21:38:10Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
6543f1eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.