Start: say so when Windows has no audio output (issue #305) #366

Manually merged
github merged 1 commit from github-bot/gh-366 into main 2026-11-29 08:22:37 +00:00 AGit
Owner

@⁠ghost on GitHub · 2026-11-27 21:30 UTC · original
fix/no-audio-endpoint → main · +122 −5 · 8 files · 1 commits · merged 2026-11-29 08:16 UTC

For #305. This does not fix the freeze itself: it tells the player what to do before they run into it.

With no playback device in Windows, the title gets E_NOTFOUND for its default audio endpoint, keeps a lock of its own for good, and freezes at the story's loading screen (the analysis is in #305). Any playback device, even a virtual one, avoids it.

What this adds:

  • At the start, victory.exe asks Windows whether there is a default playback device (GetDefaultAudioEndpoint(eRender, eConsole)), on a thread of its own so the title still chooses its COM apartment.
  • With none, it says so in the console (an audio line) and at the top of the picture for the first 30 seconds, above the warm-up and frame generation lines:
NO AUDIO OUTPUT: THE GAME FREEZES WHEN LOADING
TURN ON A PLAYBACK DEVICE (EVEN A VIRTUAL ONE)
IN WINDOWS SOUND SETTINGS, THEN START AGAIN
  • victory_gpu::start_notice: a small way for the start to add lines to that notice.
  • The windows crate is no longer optional in victory-hle: the check needs it in every build. Cargo.lock is unchanged.

Tested on an RTX 4070, Windows 11, release build, title v1.0.2.1:

  • every playback device disabled: the three lines show at the top of the picture;
  • a playback device enabled: they don't.

Not seen on screen: the empty line after the three lines, added after the first test. The two new unit tests pass.

cargo clippy -D warnings fails on main already (victory-gpu, victory-formats), with nothing in the files this touches.

🤖 Generated with Claude Code

**@⁠ghost** on GitHub · 2026-11-27 21:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/366) `fix/no-audio-endpoint` → `main` · +122 −5 · 8 files · 1 commits · merged 2026-11-29 08:16 UTC For #305. This does **not** fix the freeze itself: it tells the player what to do before they run into it. With no playback device in Windows, the title gets `E_NOTFOUND` for its default audio endpoint, keeps a lock of its own for good, and freezes at the story's loading screen (the analysis is in #305). Any playback device, even a virtual one, avoids it. What this adds: - At the start, `victory.exe` asks Windows whether there is a default playback device (`GetDefaultAudioEndpoint(eRender, eConsole)`), on a thread of its own so the title still chooses its COM apartment. - With none, it says so in the console (an `audio` line) and at the top of the picture for the first 30 seconds, above the warm-up and frame generation lines: ``` NO AUDIO OUTPUT: THE GAME FREEZES WHEN LOADING TURN ON A PLAYBACK DEVICE (EVEN A VIRTUAL ONE) IN WINDOWS SOUND SETTINGS, THEN START AGAIN ``` - `victory_gpu::start_notice`: a small way for the start to add lines to that notice. - The `windows` crate is no longer optional in `victory-hle`: the check needs it in every build. `Cargo.lock` is unchanged. Tested on an RTX 4070, Windows 11, release build, title v1.0.2.1: - every playback device disabled: the three lines show at the top of the picture; - a playback device enabled: they don't. Not seen on screen: the empty line after the three lines, added after the first test. The two new unit tests pass. `cargo clippy -D warnings` fails on `main` already (victory-gpu, victory-formats), with nothing in the files this touches. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With no playback device in Windows the title gets E_NOTFOUND for its
default endpoint, keeps a lock of its own for good, and freezes at the
story's loading screen (or stops on its own check on the first screen).
Any playback device, even a virtual one, avoids it.

The start now asks Windows whether there is a default playback device
(on a thread of its own, so the title still chooses its COM apartment)
and, with none, says what to do in the console and at the top of the
picture for the first 30 seconds, above the warm-up and frame
generation lines. It does not fix the freeze itself.

The `windows` crate is no longer optional in victory-hle: the check
needs it in every build.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:33:44 +00:00
github manually merged commit 1e77feaead into main 2026-11-29 08:22:37 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!366
No description provided.