startup_stubs/xapu: track handles and retire permissive command completions #1471
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1478"
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 tedin7 on 2026-11-24T12:36:24Z.
Summary
src/startup_stubs/xapu.cppacrossXApuConnect/XApuDisconnect, returning distinct nonzero handles and refusing null outputs (E_POINTER) and unknown or disconnected handles (E_HANDLE).X2W_AUDIO_PERMISSIVE=1, queue one completion entry perXApuEnqueueCommandcall soXApuGetResultCountandXApuDequeueResultretire commands cleanly (zeroing the0x58-byte result buffer without fabricating unmeasured fields, and returningE_FAILwhen the queue is empty).timeBeginPeriod(1)/timeEndPeriod(1)) lifecycle on first connect / last disconnect, and keep default non-permissive trapping untouched.tests/startup_xapu_queue_check.cpp(startup_xapu_queueinCMakeLists.txt) and updatedocs/startup-runtime.md.Verification
AI-assisted; commands listed were executed locally.
git diff --check origin/main..HEAD,python3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py/O2): pendingx2w_pipe.py win2025run on this PR.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:45:11Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207) at commit
bbdd7a1a46613ec2ea4e80ff396e4600f62fe28e:--preset dev):ctest -R '^(startup_stubs|startup_xapu_queue)$'2/2 passed./O2(--preset release): same selection, 2/2 passed.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T12:45:25Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
bbdd7a1ℹ️ 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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:10:41Z.
Maintainer update at
aa0e90b2allocates each connection before taking the SRW lock. Allocation failure returns E_OUTOFMEMORY without publishing a handle or changing the mixer timer. The source-built Windows Release startup_xapu_queue check passed, including distinct handles, per-handle retirement and invalid calls. Completion data remains explicitly synthetic.