apu: warn when the host has no audio output device #222
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/222"
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 Marvisak/VIctory. Originally posted by a55uka on 2026-11-24T01:35:23Z.
On Linux, if Wine has no sound driver, the game stops about 15 seconds in. It always stops at its own int3 assert at title+0x4dcbc9d, in the loading-screen loop (title+0x5ab12e0), and nothing in the crash report mentions audio.
Cause: with no output device, the game's audio never empties its command buffer. Each pass of the loading loop adds about 1.7 KB to a 96 KB buffer until the next write doesn't fit, and the game asserts. Fedora ships Wine's sound drivers as separate packages (wine-pulseaudio, wine-alsa), and installing wine alone doesn't pull them in, so this is easy to hit.
Tested:
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T05:19:03Z.
Thanks @a55uka for adding a once-only warning when the host reports no audio output devices.
I tested commit
9a77707b01c040e7c4480fb96b2c6e17b79b04d8with:The targeted test passed (1 passed, 0 failed; 85 filtered).
decodes_opus_as_the_title_drives_itconnects throughXApuConnect, which calls the new once-only output-device check, then continues through the title-shaped Opus command flow.This confirms the connection path still succeeds with the check in place. The test does not force the no-device branch or assert the warning event/text, and it does not exercise the documented host audio-driver setup.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T08:03:15Z.
Review: APPROVED
Tested
9a77707on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed). I did not run it under Wine.Cargo.tomlchange only adds theWin32_Media_Audiofeature to the existingwindows-sysdependency, with no new crate.waveOutGetNumDevstakes no arguments and only counts devices.Oncekeeps it to a single check, on the firstXApuConnect. That is cheap, and it runs before the title starts filling command buffers.waveOutGetNumDevscounts legacy waveOut endpoints. On Windows that matches "an audio output exists" closely enough. Under Wine it depends on which driver backs winmm, which is the case the PR targets and the one you tested.No issues found.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:21:13Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:README.md.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.