]>
| description | PortAudio portable cross-platform audio I/O library (fork) |
| last change | Fri, 24 Jul 2026 20:55:10 +0000 (15:55 -0500) |
| URL | https://andrewgundersen.net/repos/portaudio |
PortAudio is a portable audio I/O library designed for cross-platform support of audio. It uses either a callback mechanism to request audio processing, or blocking read/write calls to buffer data between the native audio subsystem and the client. Audio can be processed in various formats, including 32 bit floating point, and will be converted to the native format internally.
/doc/html/index.html after running Doxygen.src/common/portaudio.h for the API spec.examples/ and test/ directories for many examples of usage. (We suggest examples/paex_saw.c for an example.)For information on compiling programs with PortAudio, please see the tutorial at:
http://portaudio.com/docs/v19-doxydocs/tutorial_start.html
We have an active mailing list for user and developer discussions. Please feel free to join. See http://www.portaudio.com for details.
include/portaudio.h = header file for PortAudio API. Specifies API.
src/common/ = platform independent code, host independent
code for all implementations.
src/os = os specific (but host api neutral) code
src/hostapi = implementations for different host apis
src/hostapi/alsa = Advanced Linux Sound Architecture (ALSA)
src/hostapi/asihpi = AudioScience HPI
src/hostapi/asio = ASIO for Windows and Macintosh
src/hostapi/coreaudio = Macintosh Core Audio for OS X
src/hostapi/dsound = Windows Direct Sound
src/hostapi/jack = JACK Audio Connection Kit
src/hostapi/oss = Unix Open Sound System (OSS)
src/hostapi/wasapi = Windows Vista WASAPI
src/hostapi/wdmks = Windows WDM Kernel Streaming
src/hostapi/wmme = Windows MultiMedia Extensions (MME)
test/pa_fuzz.c = guitar fuzz box
test/pa_devs.c = print a list of available devices
test/pa_minlat.c = determine minimum latency for your machine
test/paqa_devs.c = self test that opens all devices
test/paqa_errs.c = test error detection and reporting
test/patest_clip.c = hear a sine wave clipped and unclipped
test/patest_dither.c = hear effects of dithering (extremely subtle)
test/patest_pink.c = fun with pink noise
test/patest_record.c = record and playback some audio
test/patest_maxsines.c = how many sine waves can we play? Tests Pa_GetCPULoad().
test/patest_sine.c = output a sine wave in a simple PA app
test/patest_sync.c = test synchronization of audio and video
test/patest_wire.c = pass input to output, wire simulator
Build portaudio:
./configure and make
At the time of writing (MacOS 12.1) I initially received build errors (-WError) about unused variables, so I had to remove -WError flag from the build rules.
Anytime the build configuration changes, make sure to run (see PortAudio docs):
autoreconf -if
Use find command in usr/local/lib to see install state:
find /usr/local/lib -name "libport*" -maxdepth 1
The default build of PortAudio sets an absolute install path (usr/local/lib) which causes issues if you want to package the .dylib in a project. To fix this, use install_name_tool to rename the binary using a relative @loader_path:
install_name_tool -id "@loader_path/libportaudio.dylib" libportaudio.dylib
Ideally, this would be set in the build config settings of PortAudio, but I haven't figured out how to do that yet.
TODO: Sign on build Of course, any binary (e.g. libportaudio.dylib) must be signed before distribution.
| 5 years ago | v19.7.0-RC2 | release candidate 2 with jack PipeW... | tag | | commit | shortlog | log |
| 5 years ago | v19.7.0 | | commit | shortlog | log | ||
| 9 years ago | pa_stable_v190600_20161030 | released on Oct 30 2016 | tag | | commit | shortlog | log |
| 9 years ago | svn/1415 | tag | | commit | shortlog | log | |
| 12 years ago | pa_stable_v19_20140130_r1919 | | commit | shortlog | log | ||
| 14 years ago | pa_stable_v19_20111121_r1788 | | commit | shortlog | log | ||
| 15 years ago | pa_stable_v19_20110326_r1647 | | commit | shortlog | log | ||
| 18 years ago | v19p-2008-03-20 | | commit | shortlog | log | ||
| 18 years ago | unknown-was-pateam | | commit | shortlog | log | ||
| 20 years ago | v19-devel-pre-restructure | | commit | shortlog | log | ||
| 24 years ago | V18 | | commit | shortlog | log | ||
| 24 years ago | initial | | commit | shortlog | log |
| 43 hours ago | refresh_devices | shortlog | log | tree |
| 4 years ago | master | shortlog | log | tree |
| 4 years ago | winrt | shortlog | log | tree |
| 5 years ago | fix-390-remove-lrintf-from-pa-converters | shortlog | log | tree |
| 7 years ago | alsa_uninitialized_dir_fixes | shortlog | log | tree |
| 7 years ago | ticket_263_alsa_uninitialized_var_2 | shortlog | log | tree |
| 7 years ago | alsa_rename_grope_device_function | shortlog | log | tree |
| 7 years ago | ticket_263_alsa_uninitialized_var | shortlog | log | tree |
| 7 years ago | ticket_123 | shortlog | log | tree |
| 7 years ago | sndio | shortlog | log | tree |
| 7 years ago | edechamps-remove-scons | shortlog | log | tree |
| 7 years ago | edechamps-cmake-instructions | shortlog | log | tree |
| 7 years ago | wasapiformat | shortlog | log | tree |
| 7 years ago | cmake_mingw_additions | shortlog | log | tree |
| 7 years ago | krokoziabla/win_package | shortlog | log | tree |
| 8 years ago | ticket_218 | shortlog | log | tree |
| ... | ||