feat(tombox): build and verify AcpHal.dll and chad.dll audio libraries by default (W14) #190

Manually merged
github merged 3 commits from gh-pr/190/head into gh-pr/190/base 2026-11-26 05:36:27 +00:00
Owner

@⁠Lewandox on GitHub · 2026-11-25 01:23 UTC · original
Lewandox:feat/tombox-acphal-chad-w14 → main · +134 −3 · 5 files · 3 commits · merged 2026-11-25 15:30 UTC

Summary

Closes W14 from docs/research/first-boot-1021.md by adding TomBox's acphal (AcpHal.dll, 9 imports) and chad (chad.dll, 5 imports) console audio DLLs to the default TomBox build and verifying their live exports and lifecycles — eliminating 14 of the 16 remaining missing console imports reported by tools/jour_j.py and scarlett.py --traduction.

What changed

  • tools/build_tombox.py: Adds "acphal" and "chad" to DEFAULT_CRATES so python tools/build_tombox.py (and CI) builds and installs acphal.dll and chad.dll into runtime/build/tombox/.
  • PrototypeScarlett/emu/translation.py: Adds xcrdapi.dll, xapu.dll, acphal.dll, and chad.dll to CONSOLE_DLLS so console DLL coverage tracks them cleanly.
  • tests/test_tombox_audio_dlls.py: Verifies all 9 AcpHal.dll exports (AcpHalCreate, AcpHalAllocateShapeContexts, AcpHalReleaseShapeContexts, ApuCreateHeap, ApuAlloc, ApuFree, ApuIsVirtualAddressValid, ApuMapVirtualAddress, ApuMapApuAddress) with a live APU heap allocation/mapping/free + AcpHalCreate round-trip, and all 5 chad.dll exports (XDspConnectWithMaximumStreamLimit, XDspDisconnect, XDspActivate, XDspDeactivate, XDspSubmitCommand) with a live XDspConnectWithMaximumStreamLimit → XDspDisconnect lifecycle.
  • tests/test_launcher.py & tests/test_tombox_default.py: Adds native launcher binding test for AcpHal.dll + chad.dll and guards acphal/chad/xcrdapi in CI_CRATES.
  • 9 READMEs: Updates the automated test count from 658 to 661 across all 9 languages.

Verification

  • Built acphal.dll and chad.dll from third_party/tombox (cargo build --release -p acphal -p chad) and installed into runtime/build/tombox/ via tools/build_tombox.py.
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools — passed.
  • python -m pytest tests/test_tombox_audio_dlls.py tests/test_tombox_default.py tests/test_translation.py -v — 30 passed.
  • python -m pytest -q — full suite passed (661 tests collected and synced across all 9 READMEs).

Refs #26

**@⁠Lewandox** on GitHub · 2026-11-25 01:23 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/190) `Lewandox:feat/tombox-acphal-chad-w14` → `main` · +134 −3 · 5 files · 3 commits · merged 2026-11-25 15:30 UTC ## Summary Closes W14 from `docs/research/first-boot-1021.md` by adding TomBox's `acphal` (`AcpHal.dll`, 9 imports) and `chad` (`chad.dll`, 5 imports) console audio DLLs to the default TomBox build and verifying their live exports and lifecycles — eliminating **14 of the 16 remaining missing console imports** reported by `tools/jour_j.py` and `scarlett.py --traduction`. ### What changed - **`tools/build_tombox.py`**: Adds `"acphal"` and `"chad"` to `DEFAULT_CRATES` so `python tools/build_tombox.py` (and CI) builds and installs `acphal.dll` and `chad.dll` into `runtime/build/tombox/`. - **`PrototypeScarlett/emu/translation.py`**: Adds `xcrdapi.dll`, `xapu.dll`, `acphal.dll`, and `chad.dll` to `CONSOLE_DLLS` so console DLL coverage tracks them cleanly. - **`tests/test_tombox_audio_dlls.py`**: Verifies all 9 `AcpHal.dll` exports (`AcpHalCreate`, `AcpHalAllocateShapeContexts`, `AcpHalReleaseShapeContexts`, `ApuCreateHeap`, `ApuAlloc`, `ApuFree`, `ApuIsVirtualAddressValid`, `ApuMapVirtualAddress`, `ApuMapApuAddress`) with a live APU heap allocation/mapping/free + `AcpHalCreate` round-trip, and all 5 `chad.dll` exports (`XDspConnectWithMaximumStreamLimit`, `XDspDisconnect`, `XDspActivate`, `XDspDeactivate`, `XDspSubmitCommand`) with a live `XDspConnectWithMaximumStreamLimit` → `XDspDisconnect` lifecycle. - **`tests/test_launcher.py` & `tests/test_tombox_default.py`**: Adds native launcher binding test for `AcpHal.dll` + `chad.dll` and guards `acphal`/`chad`/`xcrdapi` in `CI_CRATES`. - **9 READMEs**: Updates the automated test count from `658` to `661` across all 9 languages. ### Verification - Built `acphal.dll` and `chad.dll` from `third_party/tombox` (`cargo build --release -p acphal -p chad`) and installed into `runtime/build/tombox/` via `tools/build_tombox.py`. - `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools` — passed. - `python -m pytest tests/test_tombox_audio_dlls.py tests/test_tombox_default.py tests/test_translation.py -v` — **30 passed**. - `python -m pytest -q` — full suite passed (`661` tests collected and synced across all 9 READMEs). Refs #26
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:36:25 +00:00
github manually merged commit bf83b87ecd into gh-pr/190/base 2026-11-26 05:36:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.