Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

What service/daemon should be added to Microphone Permissions on MacOS?

Open wgalternate opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [ ] I have searched the existing issues

Is your issue described in the documentation?

  • [ ] I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

Adding daemondo to the screen recording and input monitoring to the security permissions of MacOS gets the stream up and running with input working. Audio using BlackHole 2ch does not seem to work though.

When running sunshine from a terminal - the terminal gets added to the permissions for the microphone, screen recording and input monitoring which allows for audio to work.

Running sunshine via plist on the other hand, daemondo needed to be added manually to those permissions. Although I suspect it's something else that needed to the microphone permissions other than daemondo perhaps? As audio fails.

Expected Behavior

Audio to work when lauching sunshine via plist at startup instead of via terminal.

Additional Context

No response

Host Operating System

macOS

Operating System Version

Sonoma

Architecture

64 bit

Sunshine commit or version

v2024.804.224028

Package

macOS - Portfile

GPU Type

n/a

GPU Model

M1

GPU Driver/Mesa Version

Capture Method

AVCaptureScreen (macOS)

Config

audio_sink = BlackHole 2ch
fps = [30,60,120,144]
resolutions = [
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3840x2160,
    3840x1600,
    2388x1668
]

Apps

No response

Relevant log output

[2024:08:07:11:44:17]: Warning: audio_control_t::set_sink() unimplemented: BlackHole 2ch
[2024:08:07:11:44:17]: Error: Failed to setup microphone.
[2024:08:07:11:44:17]: Error: Unable to initialize audio capture. The stream will not have audio.

wgalternate avatar Aug 07 '24 10:08 wgalternate

You need to grant the responsible code, as determined by macOS, the microphone permission. This is probably the Sunshine binary, although it can vary, because we don't properly distribute Sunshine as an application bundle. See https://github.com/orgs/LizardByte/discussions/547.

I don't know what daemondo is.

cathyjf avatar Nov 02 '24 13:11 cathyjf