Repository navigation
Audio input: serve auddmg and audsmx streams through Mac and iPhone microphones - #1282
Open
rastapasta wants to merge 1 commit into
Open
rastapasta wants to merge 1 commit into
rastapasta wants to merge 1 commit into
Conversation
Add typed CMIF requests, owned child interfaces and copied-handle decoding, then use them for audio-device queries and mixer input streams. Capture default-device PCM through AudioQueue, publish it through the shared input ring, and drain callbacks before releasing stream state. Include conversion, gain, notification and lifetime tests. Configure microphone permission metadata and iPhone session, interruption and route handling. Add regression impact coverage for the shared transport and capture backend. Front-ends: new: Include NSMicrophoneUsageDescription, compile capture_apple.m and link AVFAudio. iPhone front ends must forward session, suspension and route-reset events as described in docs/frontends.md.
1 task done
rastapasta
force-pushed
the
fix/audio-input-capture
branch
from
November 5, 2026 06:27
b8cca05 to
6e6bb41
Compare
3 tasks done
3 tasks done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Games opening
audsmx:uneed captured PCM in their shared input ring. Returning a device list alone leavesOpenInputStreamwithout a producer.auddmg:udevice queries, profiles and microphone attachment, plus ownedaudsmx:uinput streams, state and filled-frame events, gain ramps and format conversion.The named routes currently share the default microphone. Legacy AudioIn, output mixer streams, device-change notifications and dedicated voice processing remain unsupported. Audio reference.
Checked
t_sf(40 checks),t_auddmg(89),t_audio_input_ring(18) andt_audsmx(126), normally and under ASan/UBSan, all pass. Documentation, usage-map and Mac packaging tests pass.hle_oe.c/freadsizing finding, reproduced against unchanged upstream. The Python ratchet reports existing findings indm/games/settings.py:115anddm/tools/tests/test_split_linkdata.py:39; both files are byte-identical to upstream.regress.py impact origin/main..HEADcompleted. The five-game check selected Ocarina (input streams), Animal Crossing (CMIF), Mario Kart World (CMIF/camera), Wonder (playback) and Hades (another playback/API path). It stops at preflight with exit 2: only Ocarina has a local Mac build. No gameplay regression pass is claimed. Metal cache cleanup was skipped to preserve the ongoing shader build.Front ends
Front-ends: new: Include
NSMicrophoneUsageDescription, compilecapture_apple.mand link AVFAudio. iPhone front ends must forward audio-session, suspension and route-reset events as described in docs/frontends.md.Docs