Comments (6)
No idea, I don't use macOS, but shouldn't you package your binary in a .app directory if you want to distribute it, then you can use a metadata/plist file like this described here https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos.
from malgo.
Btw. miniaudio is a single header library, that uses runtime linking where possible, so you don't have to include "binaries of the plugin", everything is already in the binary. Frameworks that are used are CoreFoundation, CoreAudio, and AudioUnit.
from malgo.
Well, go run or go build is the same. Did you maybe use a root/admin account? Did you try to reset mic permissions with the command mentioned above, so it asks again for permissions?
from malgo.
Ok thanks for the info, i tried packing a manual .app with no success.
Its for a single user for a specific interactive installation, i was just hoping to be able to make a simple binary that i could share that could use the microphone.
I will try to pack a .app again.
Or i will just setup golang on the person computer and do go run instead.
Thanks
from malgo.
I confirm running the binary with sudo did not fix the issue.
I can also confirm that running : tccutil reset Microphone
did not fix the issue , the binary using malgo doesnt not trigger the autorisation mesage.
Quick FYI i use : https://github.com/mitchellh/gon to sign and notarize the binary
I will try to build a .app manually agin, i hope i can get it to work this way at this point i would need to redo it in swift or in xcode i guess
It just a mystery for me that it only work on my computer but not on other computers
from malgo.
This is documented in miniaudio https://miniaud.io/docs/manual/#Building.
from malgo.
Related Issues (20)
- Examples not compiled HOT 3
- Capture example doesn't run on macOS 10.15.3? HOT 9
- How can I select a device to use for capture/playback manually? HOT 9
- unable to obtain correct number of samples HOT 11
- Q: Why is iOS not supported? HOT 15
- please update to v0.10.35 HOT 1
- Documentation issue for InitDevice HOT 2
- DeviceInfo.Name function returns a string with null bytes in it HOT 1
- Warnings on macOS 12.1
- Documentation/Examples of using loopback. HOT 1
- Q: how to encode input audio bytes to PCM properly HOT 1
- Having trouble specifying device dynamically. HOT 1
- Q: Is it possible to get individual audio streams from applications? HOT 1
- Extend WasapiDeviceConfig to support loopbackProcessID and loopbackProcessExclude
- SIGSEGV from `ma_device_uninit` HOT 4
- test segfault after upgrade to v0.11.10 HOT 1
- Dynamic Linking fails on OSX OSX 13.5.2 and 14.0 (Sonoma) HOT 2
- NULL Audio device on MacOS 14.1.1 (23B81) HOT 3
- Q: Support for High Level API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from malgo.