Allow a way to specify the portaudio location
See original GitHub issueIt would be nice to be able to specify the location of the portaudio lib for people that want to use a specific location and/or version. At present the code just uses whatever ctypes find_library discovers or reverts to the provided _sounddevice_data
folder.
Downsides:
- it’s often unnecessary to provide portaudio (at least on *nix systems)
- this isn’t the location that the rest of the OS expects things. That causes problems for packaging the lib into an app. For example to wrap sounddevice up into an application bundle on Mac (e.g. py2app) the dylib files really should go into the Contents/Frameworks folder. If the app is going to be code-signed to verify it was from a trusted developer then the dylibs MUST go into the frameworks folder
I wonder if we could have something like a check for an environment variable first, like os.environ[‘SD_PORTAUDIO’] ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
when installing pyaudio, pip cannot find portaudio.h in /usr ...
Since pyAudio has portAudio as a dependency, you first have to install portaudio. brew install portaudio. Then try: pip install pyAudio .
Read more >Building Portaudio for Linux
Configuring and Compiling PortAudio. You can build PortAudio in Linux Environments using the standard configure/make tools: ./configure && make. That will build ...
Read more >Building Portaudio for Mac OS X
Apple's Xcode and its related tools installed in the default location. ... You can use command-shift-G in the finder to specify the exact...
Read more >Utility Functions - PortAudio
PortAudio allows you to get error text from an error number. const char * Pa_GetErrorText (PaError errorCode). Stream State. PortAudio Streams exist in...
Read more >PortAudio API Overview
It describes how all of the PortAudio data types and functions fit together. ... Another example is that the ASIO SDK only allows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for making this library, you helped me regain my sanity with trying to replicate the
sounddevice.OutputStream
functionality with the Qt framework usingQAudioOutput
(after weeks of trying I gave up, and stumbled across sounddevice).Also in case you’re curious, with this PR,
libportaudio.dylib
is placed in a part of the.app
bundle where the bundle can be codesigned and notarized.Thanks @j9ac9k!