[pr-diagnostics][startup][audio] Report Windows spatial audio stream failures at startup #272
Loading…
Reference in a new issue
No description provided.
Delete branch "superhero-520/Darner:spatial-audio-startup-check"
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?
Refs #256.
Contributor role (optional)
superhero-520
What it changes
On main, startup checks whether Windows has a default playback device. In #256 that check passed, but Windows returned
0x80040154when asked to create a spatial audio stream.Startup now requests a static front-left/front-right stream with the endpoint's preferred object format and releases it immediately. A failure shows the operation and HRESULT in the console and startup picture. The title can continue. No audio is played.
How it was tested
b262a36670db3d9d6a251cd6bef32ed0f908e853on Windows with Rust 1.98.1.cargo +1.98.1 test --locked -p darner-hle --lib modules::audio::output::tests -- --nocapturepassed all 7 tests.0x80040154at stream activation. Neither case called Start.darner runprinted the same three missing-device lines and then reported the intentionally absent input file. No physical playback endpoint, affected Windows 10 installation or gameplay run was available here.cargo +1.98.1 clippy --workspace --all-targets --locked -- -D warningsand its--all-featuresvariant passed.cargo +1.98.1 xtask policypassed for 555 files.cargo +1.98.1 build --locked -p darnerpassed.cargo +1.98.1 test --locked -p darner-hle --lib -- --test-threads=1passed 498 tests with 15 ignored, including all 19 audio tests. I stopped the default-concurrency workspace run after its GPU test process had run for 15 minutes, with no further completions for over 13 minutes.cargo +1.98.1 test --workspace --locked -- --test-threads=1then exited 101. The GPU suite passed 1,772 tests, ignored 81 and failedwatch::tests::ask_once_by_res_splits_reservations_without_refusals(Some(140931)versusNone). The assertion is also present on basef3840d73. PR #150 addresses how it checks write history.Checklist
f3840d73.Checked for overlap
PASS
Review of
b262a3667.Audited spatial-audio startup behavior, COM activation and lifetime, the activation-property blob, and audio-format handling. No blocking correctness issue found.
Windows validation: G1 PASS; G2 PASS;
cargo xtask policyPASS (555 files ok);cargo test --locked -p darner-hle --lib audio— 23 passed, 0 failed;cargo test --locked -p darner --bin darner— 148 passed, 0 failed, 1 ignored.Not run in-game.
AI-assisted: yes (GitHub Copilot, Auto mode).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.