Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

incorrect volume values of Airpods in Sonoma when auto-switch is enabled #78

Open
Wouter01 opened this issue Oct 5, 2023 · 0 comments

Comments

@Wouter01
Copy link

Wouter01 commented Oct 5, 2023

In macOS Sonoma, Apple introduced faster switching of Airpods between devices. This new method seems to break some of the available APIs. For example, when the airpods are selected as the output device on mac, but they are being used to play something on an iPhone, getting the volume will default to 0.5 and setting the volume will set it to 0.5

let client = SimplyCoreAudio()
print(client.defaultOutputDevice?.virtualMainVolume(scope: .output)) // 0.5

This bug seems to be affecting some parts of macOS aswell, as pressing volume up/down on the keyboard will set the output value to 0.5 in control center too. When the airpods will output macOS audio again, the volume will indeed be set to 0.5 even if the user did not intend to do that.

I filed feedback for this at Apple, as it looks to be an issue at their side. I was wondering if anyone else has experienced issues with this, and possible has a workaround for it? Can we detect with this library if the airpods are "really" outputting audio for the mac?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant