question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow a way to specify the portaudio location

See original GitHub issue

It 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:

  1. it’s often unnecessary to provide portaudio (at least on *nix systems)
  2. 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:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
j9ac9kcommented, Oct 25, 2019

Thanks for making this library, you helped me regain my sanity with trying to replicate the sounddevice.OutputStream functionality with the Qt framework using QAudioOutput (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.

0reactions
mgeiercommented, Oct 25, 2019

Thanks @j9ac9k!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found