upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/com_shim.cpp
AgeCommit message (Collapse)Author
10 daysruntime: serve a silent output endpoint when the host has noneJan Trencansky
The title creates its MMDeviceEnumerator through CoCreateInstance. On a host with no render endpoint, GetDefaultAudioEndpoint(eRender) is 0x80070490, the title's audio device start leaves its own output-device lock held, the audio engine never mixes, and the boot stops on an int3 about 47 s in. A console always has an output. com_shim's CoCreateInstance now hands that class to shims/silent_audio.cpp. A host enumerator with a default render endpoint is returned unchanged. Otherwise (no endpoint, no enumerator, or LEONIDA_AUDIO=silent) render questions get an in-process endpoint: IMMDevice with a read-only property store, IAudioClient/2/3 at 48 kHz float 7.1, and IAudioRenderClient, IAudioClock, ISimpleAudioVolume and IAudioStreamVolume. A clock drains the padding in real time and an event-driven stream's event is signalled every 10 ms. Every sample is discarded; no host audio device is opened. Capture keeps the host's answer. One [rt] line names the reason when the silent device is first served. silent_audio_test covers stand-in hosts with and without an endpoint, no host, a render stream over a few periods, and the CoCreateInstance hook with LEONIDA_AUDIO=silent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 dayscom_shim: retain host apartment reference when absorbing RPC_E_CHANGED_MODEpiyonchu
12 daysruntime/shims: shim api-ms-win-core-com-l1-1-0..3 lifecycle and helperspiyonchu
Refs: https://github.com/ItsNotRexed/Leonida/issues/9065#issuecomment-7114294575