Skip to content

[upstream #887] Audio: provide a silent spatial endpoint without a playback device - #190

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/887
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/887

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Fixes xcl-dev#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

  • Provide a silent endpoint through the title’s Windows audio device discovery. Prefer a real default playback device if one becomes available.
  • Request 48 kHz mono float buffers on a timer and discard the samples.
  • Test COM routing, endpoint selection, and repeated buffer updates, including stopping and restarting the stream.

This PR includes the COM routing and renderer together so a volunteer can test the full startup path with one build.

Tested

Clean head a3b0ea0479e683e34bb10a439cb6668e1eff0e34, based on upstream main at 1ec4c98cda119432a4b3f205e146fba2d6f8379a. Windows 11 build 26300, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug profile.

  • cargo build --locked --workspace passed.
  • cargo test --locked --workspace -- --test-threads=4 --show-output reported 718 passed, 0 failed, 41 ignored. All three new spatial audio tests passed.
  • The reported passes include five runtime skips. Two tests require wave64, one requires reserved cube textures with mips, and two require the D3D12 debug layer. A VFS junction subcase also skipped because mklink /J was unavailable.

Regression run

eizispark’s GTA VI smoke reports were run for 60 seconds on Windows 11 with an AMD Radeon RX 9070 XT and an active playback device. Both runs finished with zero crashes and zero device removals.

Upstream main

xcl-smoke v1
commit: beaa245ca04e212f064efc7cafcdce104bc5c0a2
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1660 (PresentX 1660)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14862 MB

PR head

xcl-smoke v1
commit: a3b0ea0479e683e34bb10a439cb6668e1eff0e34
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1663 (PresentX 1663)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14730 MB

Not tested

GTA VI startup on a host with no active playback device.

AI use

Codex (GPT-6) implemented the fallback and synthetic tests and ran the Windows validation.


Mirror of xcl-dev#887 (auto-synced, do not edit).

When Windows confirms that no render device is active, offer the title a silent spatial endpoint with timed buffer requests. This lets the title keep submitting audio instead of waiting on a playback device.

Synthetic Windows tests cover COM routing, device selection and streaming, including stopping and restarting the buffer clock.

Assisted-by: Codex (GPT-6)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#887 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/887 branch November 25, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retail title 1.0.2.1: assert 0x80000003 at +0x4dcbc9d on the account prompt – a 96 KiB stream full (RTX 4060 Ti 8 GB, Windows 10)

2 participants