Add editable microphone rules and explained device type detection - #38
Closed
Wolbyworld wants to merge 1 commit into
Closed
Add editable microphone rules and explained device type detection#38Wolbyworld wants to merge 1 commit into
Wolbyworld wants to merge 1 commit into
Conversation
This was referenced Sep 5, 2026
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.
Add opt-in microphone selection rules with an editable type order, per-type lid conditions, and saved device-type overrides. For example, users can prefer a headset, then the Mac microphone with the lid open, then a camera microphone with the lid closed.
Draft: model tests, native controls, and real-device route checks pass. Lid transitions, physical reconnects, and audible input still need the hardware UAT in
Tests/UAT.md.Motivation
Moving the same laptop between workstations changes which microphones are available. A user may prefer a headset at one desk, an external microphone at another, and the built-in microphone while travelling. Maintaining only a list of individual devices makes that preference harder to apply when a new microphone is connected.
These rules automatically select the highest-priority available microphone using the user's preferred device types and lid conditions. The user defines that order based on their setup and sound-quality preferences; the app does not measure or rank audio quality. This proposal does not add workstation profiles or settings sync between Macs.
Behavior
GUI
The entry remains accessible above the existing device list, even on a system with the pre-existing list-collapse issue:
Editable rules, shown with an example lid configuration:
Automatic classifications with their evidence, including a remembered disconnected Bluetooth device:
Manual type override
The camera is explicitly assigned a type here; selecting Auto restores detection.
Screenshots come from the native preview built from this PR's source, with a separate bundle identifier and Custom mode enabled. Screenshot files are hosted on the fork's documentation branch and are not part of this code diff.
Validation
sh Tests/run.sh: 52 classification, selection, normalization, and persistence checks passed.AudioManagerand CoreAudio service in an isolated local test runner. Checks covered switching between camera and built-in input, rule edits while in Custom mode, leaving Custom mode, Ignore and Never Use in Edit mode, all types excluded, type overrides and device-priority tie breaks, and disabling rules. Each check read back the system default input and confirmed that the system default output stayed unchanged. No audio was captured. The starting routes and app settings were restored after the run.Detection is advisory where metadata is incomplete. A changed driver UID can require a new override, and metadata does not prove a wireless dongle's headset link is active. If no rule qualifies, the current input stays unchanged. Lid transitions, physical disconnect/reconnect behavior, and audible-input checks remain pending. The route checks establish system default-device changes, but do not establish capture or audible sound.
Split from closed #36. This proposal contains no popover height fix.