Skip to content

Allow a way to specify the portaudio location #130

Open
@peircej

Description

@peircej

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'] ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions