Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was 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

@Wouter01

Description

@Wouter01

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions