Add CoreAudio tap permission handling#765
Merged
Merged
Conversation
karlstav
added a commit
that referenced
this pull request
Apr 21, 2026
* Add Core Audio and tap input module for macOS (#765) - add input/coreaudio.c, input/coreaudio.h - add Objective-C CoreAudio tap backend (input/coreaudio_tap.m) - tap will be used by default to capture audio directly from default output * clean up configure.ac no need to give warnings about missing audio input libs debug stuff removed * Add CoreAudio tap permission handling * add coreaudio permission detection and requests --------- Co-authored-by: Joshua Chan <121840186+Melonchanism@users.noreply.github.com>
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.
Using private apis found in TCC.framework, it is possible to detect whether system audio permissions have been granted to cava. It is not* possible to cause a system prompt to appear, because it requires a
NSAudioCaptureUsageDescriptionkey in the terminal emulator'sInfo.plist. It is possible to open the settings page by opening a link and prompt the user to grant permissions manually, which is what is done here.*requires more digging