Keep the desktop audio mixer refill timer responsive #1448
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1448
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1448/head"
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?
@R0Y00 on GitHub · 2026-11-24 11:45 UTC · original
R0Y00:codex/audio-mixer-timer→main· +29 −1 · 3 files · 1 commits · merged 2026-11-24 12:03 UTCHold a 1 ms Windows timer request while a permissive XApu connection is active. On this Windows machine a mix worker requesting a 2 ms sleep otherwise waited about 15 ms. Release the timer on the last disconnect.
Local Release build and verification:
cmake --build out/audio-release --target startup_stub_xapu@tedin7 on GitHub · 2026-11-24 11:54 UTC · original · reviewed
Reviewed commit
e8003928576871c5fa7dd0de55a49296aa0c6e55(git diff origin/main...HEAD).Checks
python3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py, andgit diff --check origin/main..HEADpassed. Title-neutrality clean.--preset dev):startup_stub_xapu,startup_stub_consumerbuilt (24.08s);ctest -R '^startup_stubs$'1/1 passed (0.49s)./O2(--preset release): built (36.46s); 1/1 passed (0.52s).Findings
src/startup_stubs/xapu.cpp:SRWLOCK-guardedconnection_countandtimer_activecleanly balancetimeBeginPeriod(1)/timeEndPeriod(1)across repeated/concurrentXApuConnectcalls,timeBeginPeriodfailure, and mismatched or extraXApuDisconnectcalls (connection_countunderflow is guarded).CMakeLists.txt:startup_stub_xapulinkswinmmas required fortimeapi.h.startup_stubsverifies the DLL build and default trap behavior; theX2W_AUDIO_PERMISSIVE=1timeBeginPeriod(1)/timeEndPeriod(1)path itself is not exercised bystartup_stubs.