Audio: provide a silent spatial endpoint without a playback device #887
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!887
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-887"
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?
@broccolize on GitHub · 2026-11-24 07:32 UTC · original
broccolize:audio/silent-spatial-endpoint→main· +978 −0 · 7 files · 1 commits · openFixes #695. With no active Windows playback device, the issue reporter found that the title stopped draining its audio commands at the account prompt and eventually crashed. This change gives the title a silent spatial audio endpoint when Windows reports zero active playback devices. Reporter’s diagnosis
What is in it
This PR includes the COM routing and renderer together so a volunteer can test the full startup path with one build.
Tested
Clean head
635f76463f9c27942849c7f7216ad24c04264dd7on Windows 11 build 26300.9974, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug profile.cargo build --locked --workspacepassed.cargo test --locked -p xcl --lib hle::spatial_audio::tests -- --test-threads=1passed all three tests.cargo test --locked --workspace --no-fail-fast -- --test-threads=4reported 1,155 passed, 2 failed, and 46 ignored, with 25 runtime skip diagnostics. The two failures,console_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskandexecute_indirect_reads_the_arguments_written_before_it, also reproduced in focused runs on upstreamcbc296a.Regression run
NWProgramming00 ran both clean release builds for 60 seconds with the same retail title and settings on Windows 11 build 26300 and an RTX 5070 Ti with an active HDMI playback device. Both builds showed 862 frames and finished with zero crashes and zero device removals. Smoke reports
Upstream
mainPR head
Targeted no-playback-device startup
mainat1a0bbe3hit the #695 breakpoint. A local merge of the rebased candidate onto thatmain(3449911) activated the silent renderer and completed the 60-second run with 848 frames, zero crashes, and zero device removals. NVIDIA and Radeon workspace tests on the same merge added three passing spatial-audio tests and reproduced the same failures as upstream. Startup report and workspace test report.mainat47efa2ehit the #695 breakpoint at 27.6 s. Heada3b0ea0activated the silent renderer, passed that point, and later hit D3D12 device removal0x887a0006at 105.3 s. The runner did not produce a head smoke block for this run. NVIDIA test report1ec4c98hit the same breakpoint at 31.0 s. Heada3b0ea0activated the silent renderer and reached the story-loading artwork. A later BVH address check (#585) ended the run at 178.2 s. AMD test reportNot tested
Sustained in-world gameplay with the silent endpoint.
AI use
Codex (GPT-6) implemented the fallback and synthetic tests and ran the Windows validation.
@eizispark on GitHub · 2026-11-24 07:56 UTC · original
Hardware check of
a3b0ea0479e683e34bb10a439cb6668e1eff0e34(verified clean merge withmain1ec4c98): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace --no-fail-fast -- --test-threads=4:715 passed, 3 failed, 41 ignored(GPU tests skipped on this adapter:none); the 3 failures were the known concurrent--test-threads=4VRAM contention flake inhle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixelsplus two downstream mutexPoisonErrorcascades (transitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory)cargo test -p xcl --lib hle::d3d12x -- --test-threads=1:114 passed, 0 failed, 1 ignored(GPU tests skipped on this adapter:none)hle::spatial_audio::tests::routes_guest_com_activation_through_the_fallback,hle::spatial_audio::tests::exposes_the_silent_endpoint_only_when_windows_reports_no_render_device, andhle::spatial_audio::tests::renders_repeated_silent_buffers_and_stops_signaling(ok)Regression run
main(beaa245):PR (
a3b0ea0):Not tested
AI use
scripts/smoke.ps1harness on this machine and formatted this report.mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@SlopTart on GitHub · 2026-11-24 09:34 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
a3b0ea0onto main077ce40, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 708 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). silent spatial endpoint green; mirror-upload flake hit.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@vladbondarenko97 on GitHub · 2026-11-24 13:03 UTC · original
Retail check on a PC with no active playback device: #887 removes the
+0x4dcbc9dtrap.Setup: RTX 3080 Ti 12 GB (driver 32.0.16.1060, 32-lane waves), i7-12700KF, 32 GB RAM, Windows 11 Pro 26300, rustc 1.100.0, release. Retail 1.0.2.1 (package hashes verified). This PC has no active render endpoint: speakers and HDMI audio are all
UnknowninGet-PnpDevice -Class AudioEndpoint, which is the #695 case. Runs arescripts/smoke.ps1 -Seconds 600withXCL_PSO_WAIT_MS=50andXCL_PRESS_ATwalking the first-run menus.main47efa2e0x80000003atgame_scarlett_master.exe+0x4dcbc9d, 27.6 s (rax=0x17fb0 rbx=0x50 rsi=0x6c0 — the same registers as #695)a3b0ea0spatial audio: using XCL's silent renderer(5.1 s, again at 67.5 s)D3D12 device removed: 0x887a0006at 105.3 smain's block:The
0x887a0006later in the #887 run is the NVIDIA world-path hang tracked in #505/#846. I don't read it as coming from this PR: the head is based on1ec4c98, which predates the BCPack unpack (#905), and the log showsBCPack … unsupportedbefore it. Our earlier runs on this machine with a VEH workaround for the trap reached the same stage.Not tested: the head's own
xcl-smokeblock (my runner died after the run, beforesmoke.ps1printed it; the numbers above are from that run'sxcl.log). A PC with a playback device, AMD. I'm now runningmain+ #887 merged and will add both blocks.For anyone with the same trap: our #723 is this issue. The "game thread stream" I named there is the per-thread audio command stream that #695 explains.
AI use: Claude Code (Claude Opus 5.5) built and ran the test on my machine, read the logs and drafted this comment; I reviewed it.
@iggyvilla on GitHub · 2026-11-24 13:04 UTC · original
Test report for
a3b0ea0479e683e34bb10a439cb6668e1eff0e34on an AMD RDNA2 card that has an active playback device: the 90 ssmoke.ps1pair the draft asks for, plus a check of what the title does after its sign-in screen. The smoke blocks were generated byscripts/smoke.ps1and pasted unedited; the runs were measured by an agent (omp, DeepSeek V4.1 Flash), the text below was verified against the raw logs and written by Claude Code (Claude Sonnet 5.5).Tested
0ef1bc386 2026-11-09), MSVC, release.a3b0ea0is one commit on1ec4c98cda119432a4b3f205e146fba2d6f8379a(git merge-baseconfirms it), so the base below is the PR's own merge base, built in a separate clean worktree.cargo build --locked --release -p xclin both.XCL_NETWORK=0. A 30 s warm-up on the base (672 frames, exit0x0), then head and base at-Seconds 90, in that order.Digital Audio (S/PDIF)and1 - Mi Monitor (AMD High Definition Audio Device)), so the silent endpoint is not selected: none of the head or base logs containsspatial audio: using XCL's silent renderer. The pair therefore only shows that routing the guest'sCoCreateInstancethrough the new shim changes nothing on a host that has a device.cargo test --release -p xcl --lib spatial_audio -- --test-threads=4on the head: 3 passed, 0 failed, 695 filtered out (the three new tests).main(1ec4c98):PR (
a3b0ea0):Both: exit
0x0, no device removal, no crash; the PR shows 100.1 % of main's frames and 100.9 % of its peak commit. The standard harness sends no input, so both runs stop at the title's sign-in screen (a blank screen with the hintsPLAYER1 (A),ACCOUNT PICKER (Y),SCREEN NARRATION (X)) at about 30 fps; the log showsXUserAddAsync(options=0x1) → local offline user 'Player1'at 6.9 s.Past the sign-in screen. A further 90 s head run with XCL's scripted press
XCL_PRESS_A_AT=45(log:GameInput: gamepad buttons 0x4 pressed for the first timeat 45.003 s) leaves the sign-in screen and shows the game's onboarding screen (NAVIGATION EXPERIENCE, CONTINUE (A), 29.5 FPS) at 85 s, with no crash and no device removal:Two earlier attempts at sending input from outside the process (a window-level key press and a held press) were not used as evidence; both ran 90 s with exit
0x0and no crash.Not tested
cargo test --workspaceon this card; no base run with the scripted A press (the PR does not touch input); nothing past onboarding; no wave32-only host; no other title.mainhas moved since; it was not merged into this head or run.AI use
Claude Code, Claude Sonnet 5.5: checked the numbers above against the raw smoke files, logs and screenshots and wrote this text. The builds and runs were done by an agent (omp with DeepSeek V4.1 Flash); no code was changed.
@deepdev237 on GitHub · 2026-11-24 14:45 UTC · original
Retail startup check with no active Windows playback endpoint
Tested
32.0.32015.7029), Ryzen 9 5950X, Windows 11 build 26300, Rust 1.100.0 MSVC, release.a3b0ea0479e683e34bb10a439cb6668e1eff0e34against its unmodified base1ec4c98cda119432a4b3f205e146fba2d6f8379a. Both usedxcl.exe run "<retail-title>"withXCL_NETWORK=0,XCL_RUN_SECONDS=320, a warm DXIL cache and the same disposable profile and scripted A sequence starting at 44 s.0x80000003at+0x4dcbc9dat 31.000 s. #887 logged the silent renderer at 4.04 s and 65.50 s, registered the first scripted A at 44.02 s and reached story-loading artwork. A separate BVH address check (#585) ended that run at 178.244 s. The launcher exited after 189.21 s.hle::spatial_audio::tests --nocapture --test-threads=1: 3 passed, 0 failed, 0 ignored.Not tested — Active playback, 3D world rendering and in-world input.
AI use — OpenAI Codex (
gpt-6.2-sol) ran the tests, checked the local receipts and wrote this report.@Placebola on GitHub · 2026-11-24 19:34 UTC · original
Test on the PC #695 was found on (Windows 10, no active playback device): #887 removes the trap, on today's
maintoo.All render endpoints of this PC are
UnknowninGet-PnpDevice -Class AudioEndpoint, as in #695. It is the first Windows 10 run in this thread.Tested
XCL_D3D12_DIR), rustc 1.100.0, release. Retail 1.0.2.1.a3b0ea0merged ontomainc160d86: no conflicts.4f4fe32is that local merge commit, the one in the second block.cargo test --release --workspace -- --test-threads=4on4f4fe32: 861 passed, 0 failed, 42 ignored, the threespatial_audiotests among them. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).scripts/smoke.ps1 -Game <title> -Seconds 120, no input:mainc160d86:0x80000003at+0x4dcbc9dat 30.4 s, as in #695;spatial audio: using XCL's silent rendererfrom 5.5 s (11 times, the last at 14.1 s), then the whole 120 s with no crash.main:a3b0ea0onmain:Not tested
AI use
Claude Code (Claude Opus 5.5) did the builds, the test run and the two runs, and wrote this report.
@broccolize on GitHub · 2026-11-25 03:59 UTC · original
Thanks for running the original smoke pair, @eizispark. I’ve rebased the silent-audio fix onto
cbc296ab65a2661a61e3e2da109134bcd5319f60and published the candidate at635f76463f9c27942849c7f7216ad24c04264dd7.If you have time, could you rerun
scripts/smoke.ps1 -Seconds 60on clean builds of those two commits with the same title and active playback device as before, then paste both uneditedxcl-smokeblocks here? That gives me the reports for the exact commit I plan to push to #887.@JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original
Empirical test report (a3b0ea04)
Hardware / environment
XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran outsideInvoke-ArcTest.ps1without holding the Arc GPU mutex.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test binaries.cargo test -p xcl --lib hle::spatial_audio::tests:: -- --nocaptureexited 0. The log contains 3 passed, 0 failed, 0 ignored, and 0SKIPPEDlines. The filter excluded 695 tests.AtomicU32::fetch_updatein the XGameRuntime module.Observed behavior
CoCreateInstancethrough the spatial-audio hook for the Windows COM libraries and preserved the nativeCoUninitializelookup.Not tested
The full GPU workspace suite and game smoke runs were omitted. The endpoint-selection test used a synthetic enumerator, so the run did not exercise native Windows endpoint discovery or physical playback.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr887-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 09:52 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@NWProgramming00 on GitHub · 2026-11-25 13:58 UTC · original
Test of the rebased candidate
635f764on a PC with no active playback device, on currentmain.Setup
XCL_NETWORK=0.Get-PnpDevice -Class AudioEndpoint: all four render endpointsUnknown(monitor HDMI audio and two headsets, disconnected), 0OK.635f764merges cleanly ontomain1a0bbe3(merge commit3449911, local only).Tested
cargo test --release -p xcl --lib spatial_audioon the merged tree: 3 passed, 0 failed.scripts/smoke.ps1 -Seconds 60, same title and card. Onmainevery run on this PC ends with the #695 assert. With635f764merged, the log hasspatial audio: using XCL's silent rendererat 5.5 s, and the run reaches its end with no trap:main1a0bbe3:main+635f764(3449911):The peak commits are not comparable, because the
mainrun stops at about 44 s.Not tested
@NWProgramming00 on GitHub · 2026-11-25 14:00 UTC · original
The full suite on the same merged tree (
3449911=main1a0bbe3+635f764), against1a0bbe3on the same machine. Both runs usedcargo build --release --workspace, thencargo test --release --workspace --no-fail-fast -- --test-threads=4, with and withoutXCL_DIRECT_DXIL=all:main1a0bbe3635f764XCL_DIRECT_DXIL=allXCL_DIRECT_DXIL=allThe +3 are the new
spatial_audiotests. The same tests fail on both sides, and all of them are tracked:fuzz_validate_and_gpu_0..3on NVIDIA (#1905);fuzz_validate_and_gpu_1on RDNA2 (#2115);offline_compute_pipeline_is_reused_by_a_second_processwith direct DXIL (#1674).@broccolize on GitHub · 2026-11-25 14:18 UTC · original
Thanks @NWProgramming00. Your run confirms the fix clears the #695 crash with no active playback device.
If you can connect or enable a playback device, could you run a 60-second smoke pair on clean
mainatcbc296aand the exact staged commit635f764? Please use the same title and settings for both runs and share both uneditedxcl-smokeblocks. The exact commit matters for GitHub’s check.@NWProgramming00 on GitHub · 2026-11-25 14:24 UTC · original
@broccolize here is the pair. It uses the same PC, card and title as my run above, with a playback device active this time (
Get-PnpDevice -Class AudioEndpoint: monitor HDMI audioOK). Both are clean builds of the exact commits:scripts/smoke.ps1 -Seconds 60,XCL_NETWORK=0, release. The blocks are unedited.maincbc296a:635f764:@S1m0ne1997 on GitHub · 2026-11-25 14:58 UTC · original
Test report for
635f76463f9c27942849c7f7216ad24c04264dd7(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 1157 passed, 0 failed, 46 ignored.a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu(no wave64),coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu(no wave64),cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu(no wave64),the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu(no wave64),a_per_lane_2d_or_3d_group_runs_on_the_gpu(no wave64),const_and_null_mask_operands_agree_with_hlsl_on_the_gpu(const_mask, wave64: no wave64),f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); f16 arithmetic, wave64: no wave64),f32_programs_on_the_gpu(f32 arithmetic, wave64: no wave64; f32 compares, wave64: no wave64),f64_programs_on_the_gpu(f64, wave64: no wave64),integer_programs_on_the_gpu(integer arithmetic, wave64: no wave64; integer carries, wave64: no wave64),mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(mask_ff0_flbit, wave64: no wave64),gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)).Regression run (retail title,
scripts/smoke.ps1 -Seconds 60, release;mainbuilt from the commit in its block, this PR from its head with no changes tocrates/, both run with thescripts/smoke.ps1ofmain, which hashes the name of the game folder)main:
this PR:
Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@throny on GitHub · 2026-11-25 16:35 UTC · original
Two contributors checked independently and found that #1233 solves the same problem (for #695) in a different way: #1607, group D83. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@DavidM1911 on GitHub · 2026-11-26 03:11 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.