<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/com_shim.cpp, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T05:05:32+00:00</updated>
<entry>
<title>runtime: serve a silent output endpoint when the host has none</title>
<updated>2026-11-25T05:05:32+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-25T05:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d4ce33ed42ea69487b47c609d12a2d62db53313f'/>
<id>urn:sha1:d4ce33ed42ea69487b47c609d12a2d62db53313f</id>
<content type='text'>
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 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>com_shim: retain host apartment reference when absorbing RPC_E_CHANGED_MODE</title>
<updated>2026-11-23T21:43:36+00:00</updated>
<author>
<name>piyonchu</name>
<email>156166227+piyonchu@users.noreply.github.com</email>
</author>
<published>2026-11-23T21:43:36+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=464bb23d9f09623cb27a8ff7b6ea986a50c3d827'/>
<id>urn:sha1:464bb23d9f09623cb27a8ff7b6ea986a50c3d827</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime/shims: shim api-ms-win-core-com-l1-1-0..3 lifecycle and helpers</title>
<updated>2026-11-23T21:21:05+00:00</updated>
<author>
<name>piyonchu</name>
<email>156166227+piyonchu@users.noreply.github.com</email>
</author>
<published>2026-11-23T21:21:05+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=ced87bf258bcb9d89f9ab5b622758d82a4b768e3'/>
<id>urn:sha1:ced87bf258bcb9d89f9ab5b622758d82a4b768e3</id>
<content type='text'>
Refs: https://github.com/ItsNotRexed/Leonida/issues/9065#issuecomment-7114294575
</content>
</entry>
</feed>
