mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1109] runtime: warn at start when the host has no default audio output (RT-NO-AUDIO-ENDPOINT-DEADLOCK) #1144
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1144
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1109
Author: @UwUCammie
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:uwu/no-audio-endpoint-warning📝 Commits (1)
40ab6cbruntime: warn at start when the host has no default audio output (RT-NO-AUDIO-ENDPOINT-DEADLOCK)📊 Changes
4 files changed (+119 additions, -2 deletions)
View changed files
📝
docs/README.md(+1 -1)📝
docs/boot.md(+40 -1)➕
runtime/src/audio_endpoint_probe.h(+70 -0)📝
runtime/src/main.cpp(+8 -0)📄 Description
Item: RT-NO-AUDIO-ENDPOINT-DEADLOCK (claimed in #14)
What
With no default audio render endpoint, the retail title does not fail at once. It stops after the first-run screens (account, privacy and terms) on a dark loading screen that keeps being drawn. Nothing crashes, and nothing in the startup or D3D12 trace points at audio. A muted Wine run is the usual way to get there:
winealsa.drvandwinepulse.drvoff, or no/dev/sndand no sound server sockets.This PR does two things:
runtime/src/audio_endpoint_probe.hasks the host once at start, on its own thread and in its own COM apartment, forIMMDeviceEnumerator::GetDefaultAudioEndpoint(eRender, eConsole). When there is none,main.cppprints an[rt] audio:line that points at the docs.docs/boot.md§6 records the measured chain and a silent workaround for muted runs: ALSA'snullplugin throughALSA_CONFIG_PATH.The measured chain
Measured on my own copy of the Xbox package 1.0.2.1, using breakpoint hit counts and thread dumps (
LEONIDA_BREAK,LEONIDA_THREAD_DUMP):IAudioClientandISpatialAudioClient. The audio object's output list stays empty.With an output device, the same build gets past this point. The audio setup runs, the early return is never taken, and the frame tick keeps running.
The RVAs are in the docs. No game data, code bytes or disassembly are in the PR.
Tested
gta6rtwith clang-cl and xwin on Linux (CachyOS).mainthe link needssynchronization.lib(WaitOnAddress), which #877 adds. I added it only locally to build, and it is not part of this PR.GetDefaultAudioEndpointreturning0x80070490.python -I scripts/check_no_game_data.pyon the changed files passes, and so doestests/test_text_write_line_endings.py.AI-assisted: yes. The investigation, the code and the docs were written by an AI coding assistant working on this account; the tests above are the ones it ran.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.