Keep the desktop audio mixer refill timer responsive #1441
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1448"
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 R0Y00 on 2026-11-24T11:45:09Z.
Hold 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_xapuImported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T11:54:08Z.
Review: COMMENTED
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.upstream-sync referenced this pull request2026-11-24 18:02:49 +00:00