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

[macOS] missing authorization for recording #4

Open
sflavier opened this issue Apr 9, 2024 · 2 comments
Open

[macOS] missing authorization for recording #4

sflavier opened this issue Apr 9, 2024 · 2 comments

Comments

@sflavier
Copy link
Contributor

sflavier commented Apr 9, 2024

When starting an experiment on mac, the initialization of the recording fail.

Error: OSException
Could not start audio device
Message: Error opening RawInputStream: Internal PortAudio error [PaErrorCode -9986]
This error occurred in the prepare phase of item record_init.

I think it's a opensesame problem : the application don't ask for the microphone authorization via his Info.plist ( or a plugin problem if you can ask for authorization when installing the plugin)

<key>NSMicrophoneUsageDescription</key>
<string>Needed for record audio with Audio low latency plugin</string>

see : https://developer.apple.com/documentation/bundleresources/information_property_list/nsmicrophoneusagedescription

Important
If the appropriate key is not present in your app’s Info.plist file when your app requests authorization or attempts to use a capture device, the system terminates your app. The Xcode debug console displays a message that explains the reason for the crash
@lcavasso
Copy link

Had the same issue here on an Intel-based Mac running Ventura. Can get more specific computer details if needed.

@dev-jam
Copy link
Owner

dev-jam commented Apr 13, 2024

My first thought would be that the permissions would be controlled from OpenSesame itself and not the plugin.
But I haven't used a mac since snow leopard which was 15 years so I have no idea how app permissions work in macOS.
Do you have any idea where to put this Info.plist file?

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

No branches or pull requests

3 participants