docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES) #1167

Open
github-bot wants to merge 1 commit from github-bot/gh-1167 into main AGit
Owner

@⁠robot00f on GitHub · 2026-11-24 19:30 UTC · original
robot00f:docs/b5 → main · +6 −6 · 1 files · 1 commits · open

Claim: #14 (ID AUDIO-IMPORT-CALL-SHAPES; earlier Spanish wording: #issuecomment-7140238118)

What and why

docs/audio_hal_exe_calls.md already records every audio import's site count, constants and return use, but six rows stop short: two say no argument was read, one says the arguments were not read further, and three describe a tail jump or a wrapper without saying what they forward. Those are the parts a shim needs, so this fills them from the same static reads (no run):

  • XApuConnect: three arguments, the addresses of three .data globals (0x149B69890, 0x149B698A8, 0x149B68960), and the result is tested as non-negative.
  • XApuGetResultCount: the queue handle global and a second argument 0; the count is tested for zero.
  • XApuDequeueResult: the same handle and a 16-byte stack out buffer; the record is read at +0x20/+0x24 when the result is not negative.
  • XDspSubmitCommand and XDspActivate: both are wrappers that swap two incoming registers before the call (rcx/rdx and r8/r9), so the published order is the reverse of the wrapper's.
  • ApuFree: the site is a whole function that is a single jmp to the thunk, so it forwards its arguments unchanged and contributes no arity of its own.

Docs only, six table rows, no other text touched.

Tested

  • Static disassembly of each site and its wrapper (nothing executed).
  • check_no_game_data.py -> exit 0; tests/test_docs_links.py and tests/test_docs_table_rows.py -> OK.

GPUs tested: n/a

AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (No translator change.)
**@⁠robot00f** on GitHub · 2026-11-24 19:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1167) `robot00f:docs/b5` → `main` · +6 −6 · 1 files · 1 commits · open Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 (ID `AUDIO-IMPORT-CALL-SHAPES`; earlier Spanish wording: #issuecomment-7140238118) ### What and why docs/audio_hal_exe_calls.md already records every audio import's site count, constants and return use, but six rows stop short: two say no argument was read, one says the arguments were not read further, and three describe a tail jump or a wrapper without saying what they forward. Those are the parts a shim needs, so this fills them from the same static reads (no run): - XApuConnect: three arguments, the addresses of three .data globals (0x149B69890, 0x149B698A8, 0x149B68960), and the result is tested as non-negative. - XApuGetResultCount: the queue handle global and a second argument 0; the count is tested for zero. - XApuDequeueResult: the same handle and a 16-byte stack out buffer; the record is read at +0x20/+0x24 when the result is not negative. - XDspSubmitCommand and XDspActivate: both are wrappers that swap two incoming registers before the call (rcx/rdx and r8/r9), so the published order is the reverse of the wrapper's. - ApuFree: the `site` is a whole function that is a single jmp to the thunk, so it forwards its arguments unchanged and contributes no arity of its own. Docs only, six table rows, no other text touched. ### Tested - Static disassembly of each site and its wrapper (nothing executed). - check_no_game_data.py -> exit 0; tests/test_docs_links.py and tests/test_docs_table_rows.py -> OK. GPUs tested: n/a AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash) ### Checklist - [x] Based on current main and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption (CONTRIBUTING.md). - [ ] A new translator rule is in the contract table of docs/design.md. (No translator change.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:41:08 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:32 UTC · original · approved these changes

Reviewed and verified. Documents exact call signatures, register passing conventions, and return value checks for XApuConnect, XApuGetResultCount, XApuDequeueResult, XDspSubmitCommand, XDspActivate, and ApuFree in docs/audio_hal_exe_calls.md. Clean-room compliant.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1167#pullrequestreview-6045983723) · **approved these changes** Reviewed and verified. Documents exact call signatures, register passing conventions, and return value checks for `XApuConnect`, `XApuGetResultCount`, `XApuDequeueResult`, `XDspSubmitCommand`, `XDspActivate`, and `ApuFree` in `docs/audio_hal_exe_calls.md`. Clean-room compliant.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:11 UTC · original

Recommendation: [MERGE]

Reasoning: Docs: fills six rows in audio_hal_exe_calls.md with the arguments that were left unread (XApuConnect etc.) from the same static reads. Documentation only. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1167#issuecomment-7143160289) **Recommendation:** [MERGE] **Reasoning:** Docs: fills six rows in `audio_hal_exe_calls.md` with the arguments that were left unread (XApuConnect etc.) from the same static reads. Documentation only. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 2/10
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1167/head:github-bot/gh-1167'
git switch 'github-bot/gh-1167'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1167'
git switch 'github-bot/gh-1167'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1167'
git switch 'github-bot/gh-1167'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1167'
git switch 'main'
git merge --squash 'github-bot/gh-1167'
git switch 'main'
git merge --ff-only 'github-bot/gh-1167'
git switch 'main'
git merge 'github-bot/gh-1167'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.