Giter Site home page Giter Site logo

Comments (6)

gen2brain avatar gen2brain commented on July 17, 2024 1

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.

gen2brain avatar gen2brain commented on July 17, 2024 1

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.

gen2brain avatar gen2brain commented on July 17, 2024 1

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.

louistb avatar louistb commented on July 17, 2024

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.

louistb avatar louistb commented on July 17, 2024

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.

gen2brain avatar gen2brain commented on July 17, 2024

This is documented in miniaudio https://miniaud.io/docs/manual/#Building.

from malgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.