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

Open
opened 2026-11-26 20:20:26 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1167
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/b5


📝 Commits (1)

  • 16ac8f3 docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES)

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 docs/audio_hal_exe_calls.md (+6 -6)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141414296 (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.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1167 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/b5` --- ### 📝 Commits (1) - [`16ac8f3`](https://github.com/ubiquitarianism/leonida/commit/16ac8f30416ef73de425c09ca11cc6cb4796aefc) docs(audio_hal_exe_calls): fill the argument gaps the page left open (AUDIO-IMPORT-CALL-SHAPES) ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/audio_hal_exe_calls.md` (+6 -6) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141414296 (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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1201
No description provided.