From 028a0c25598948acd3725e1fd46e1b24601d6b0d Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 31 Oct 2023 20:34:46 +0100 Subject: DOC: Describe how to use a custom so/dylib/dll --- doc/installation.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/installation.rst b/doc/installation.rst index 57fbc98..2dea65c 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -33,7 +33,7 @@ manager (the package might be called ``libportaudio2`` or similar). .. note:: If you install PortAudio with a package manager (including ``conda``), - it will override the version installed with ``pip``. + it will likely override the version installed with ``pip``. The NumPy_ library is only needed if you want to play back and record NumPy arrays. The classes `sounddevice.RawStream`, `sounddevice.RawInputStream` and @@ -44,6 +44,19 @@ If needed -- and not installed already -- NumPy can be installed like this:: python -m pip install numpy +Custom PortAudio Library +------------------------ + +If you have a custom PortAudio library +(maybe a development version or a version with different features selected), +you can rename the library to ``libportaudio.so`` (Linux) +or ``libportaudio.dylib`` (macOS) and move it to ``/usr/local/lib``. +On Linux, you might have to run ``sudo ldconfig`` after that, +for the library to be found. +On Windows, you can rename the library to ``portaudio.dll`` +and move it to ``%SystemRoot%\system32``. + + Alternative Packages -------------------- -- cgit v1.2.3