Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mute status on Big Sur #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronkollasch
Copy link

Hey Andrew,

Your btt automation services have worked really well for me, so thanks for making them available.

I recently switched to Big Sur and found that while the volume was reflected in the control strip icon, mute status was always True.

It seems that AudioHardwareServiceGetPropertyData (and AudioObjectGetPropertyData) need a uint32 rather than a bool (test script in swift), and a couple lines fixed the issue.

This change may not be backwards compatible but I'm posting it just in case anyone else has the same issue.

Aaron

isMuted always returned true in Big Sur
Fixed by switching from BOOL to UInt32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant