Repository navigation
Earlo 0.6.0: stereo sound in every app (turn off the earbuds' microphone) - #2
Merged
Merged
Conversation
As soon as an app opens the earbuds' microphone (Teams, Discord, a browser), Windows switches AirPods and other earbuds from stereo to the Hands-Free profile, which is mono and sounds like a phone call. Settings > Sound quality gets a switch that turns the earbuds' Hands-Free service off (the "Handsfree Telephony" box in the classic Bluetooth device properties), so Windows can only use stereo. A warning explains first that the earbuds' microphone then no longer works and calls use the PC's microphone; the switch turns it back on at any time. It uses BluetoothSetServiceState and, when Windows wants admin rights, an elevated copy of Earlo (--hands-free), like the driver installer. PairedDeviceInfo now carries the Bluetooth address for this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019mCkM1Z4yuWf75ZuoVrk8o
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.
The problem
As soon as an app opens the earbuds' microphone (Teams, Discord, Zoom, a browser), Windows switches AirPods and other earbuds from stereo music (A2DP) to the Hands-Free profile. That profile is mono and muffled, like a phone call. This is the most common AirPods complaint on Windows. The only real fix is to turn off the earbuds' Hands-Free service: the "Handsfree Telephony" checkbox under Services in the classic Bluetooth device properties.
What this adds
Settings > Sound quality > "Turn off the earbuds' microphone for the best sound" (Dutch: "Microfoon van de oortjes uitzetten voor het beste geluid").
How
Services/HandsFree.csturns the Hands-Free service (0x111E, plus Headset0x1108where present) on or off withBluetoothSetServiceState, and reads the state withBluetoothEnumerateInstalledServices.--hands-free on|off <address>. That is the same pattern as the driver installer.PairedDeviceInfo.Address: a new field with the Bluetooth address, which these APIs need.Testing
-p:EnableWindowsTargeting=true) with 0 warnings, and 43/43 tests pass.BLUETOOTH_DEVICE_INFOmarshals to 560 bytes, with Address at offset 8 and szName at offset 64. That matches the Windows SDK layout.Generated by Claude Code