RT-SILENT-AUDIO-ENDPOINT: serve a silent output endpoint when the host has none (the boot's audio-lock stop) #1598
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1598
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1598/head"
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?
@aslan2142 on GitHub · 2026-11-25 05:31 UTC · original
aslan2142:silent-audio-endpoint→main· +2163 −2 · 8 files · 2 commits · merged 2026-11-25 05:32 UTCItem:
RT-SILENT-AUDIO-ENDPOINT. The claim could not be posted: coordination issue #14 is at GitHub's 2,500-comment limit and has no successor yet. The claim text, to be copied there once there is one:Searched first: no claim or open pull request covers this.
What and why
On a host with no audio output, the title's
GetDefaultAudioEndpoint(eRender)returns0x80070490. Its audio device start then takes an error path that leaves its output-device lock held, and the audio engine never mixes. A main-thread command buffer fills up, and the boot stops on anint3about 47 s in. Refusing the enumerator altogether gives the same stop. A console always has an output.Measured on the retail boot first, without code:
CoCreateInstance(MMDeviceEnumerator)now goes toshims/silent_audio.cpp(hooked inshims/com_shim.cpp).LEONIDA_AUDIO=silent, render questions get an in-process endpoint that never opens a host device and throws every sample away. It serves:ISpatialAudioClient/2, which is what the title activates: a 7.1 static bed, mono 48 kHz float objects, and an event every 10 ms;IAudioClient/2/3with render client, clock and volume services.[rt]line names the reason.runtime/README.md, and the behaviour indocs/runtime_imports.md("Audio output off the console (WASAPI)").Tests
silent_audio_test: 129 checks, using stand-in hosts, so no host audio is touched. It covers the enumerator with no endpoint, with one and with none at all; forced mode; event-driven, polled and spatial streams running on their clock; and the hook withLEONIDA_AUDIO=silent.main'scom_shim.cpp, the hook checks fail.silent_audiois new and passes on both.test_docs_env_vars,test_docs_links,test_docs_repo_paths,test_ci_registrationandtest_ctest_registrationpass.Measured on the retail boot
Wine, no audio driver at all, RDNA2 iGPU; counts only. Measured with #1539 merged locally, since RADV loses the device without it. It is not needed to build or merge this.
mainint3LEONIDA_AUDIO=silentAI-assisted (Claude Code, Claude Opus 5.5).
@aslan2142 on GitHub · 2026-11-25 05:32 UTC · original
Merged as a boot-blocker fix: on a host with no audio output, the retail boot now runs past the audio-lock stop at about 47 s (counts in the description).
RT-SILENT-AUDIO-ENDPOINT, in the description, because #14 is full.LEONIDA_AUDIO=silentforces it, for muted test runs.silent_audio_testis new; and a red check againstmain'scom_shim.cpp.docs/runtime_imports.md).mainc7e82e26e+018145b33: it merges cleanly; the semantic suite passes (487 files, 6,279 tests, 0 files failed); the 14 docs and writer tests pass;check_no_game_data.pyis clean on the 8 changed files.AI-assisted (Claude Code, Claude Opus 5.5).