PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Go to file
Ross Bencina f269bf93e6 follow up fix related to 933b05c331 (ticket #263 uninitialized dir variable): fix the three other places where dir parameter wasn't set prior to entry to a snd_pcm_*_get_* function. There is some ambiguity about (a) whether this is intentional (i.e. use the rounding dir returned by previous *_get_* call, the PA source code does not indicate), and (b) whether it is meaningful (i.e. whether *_get_* functions actually use the value upon input -- the ALSA docs are not clear. regarding (a): I don't think it's intentional, i think it was just oversight. In any case thr risk is low: the underlying values of period_size, periods_max, periods_min, are all integer and should not be rounded, get_rate_min/get_rate_max are used only for debug reporting (I've set them to 0,0 for a minimal change from the current code, but -1,1 makes more sense). 2019-05-14 07:36:24 +10:00
bindings Normalize all the line endings 2016-05-18 22:13:20 -07:00
build wasapi: new API PaWasapi_SetStreamStateHandler() to be able to catch WASAPI error inside the rendering thread loop (and handle it gracefully, for example restart the stream), protect from dangling pointer during device list update, cleanup header 2018-12-24 14:20:29 +02:00
cmake_support Treat DirectSound just like any other standard Windows SDK library. 2018-12-15 15:04:20 +00:00
doc update cmake documentation 2018-10-12 22:43:17 +11:00
examples paex_read_write_wire: fix crossed initialization 2016-09-26 15:42:38 -07:00
include wasapi: Add paWinWasapiAutoConvert flag, which sets AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY for Shared mode streams. 2019-04-05 10:02:17 +03:00
pablio Use pa_ringbuffer.h in pablio.h. 2012-07-09 15:53:00 +00:00
qa Loopback: fix warnings that prevent compilation 2016-07-26 19:10:23 -07:00
src follow up fix related to 933b05c331 (ticket #263 uninitialized dir variable): fix the three other places where dir parameter wasn't set prior to entry to a snd_pcm_*_get_* function. There is some ambiguity about (a) whether this is intentional (i.e. use the rounding dir returned by previous *_get_* call, the PA source code does not indicate), and (b) whether it is meaningful (i.e. whether *_get_* functions actually use the value upon input -- the ALSA docs are not clear. regarding (a): I don't think it's intentional, i think it was just oversight. In any case thr risk is low: the underlying values of period_size, periods_max, periods_min, are all integer and should not be rounded, get_rate_min/get_rate_max are used only for debug reporting (I've set them to 0,0 for a minimal change from the current code, but -1,1 makes more sense). 2019-05-14 07:36:24 +10:00
test pa_mac_core: fix whitespace and missing semicolon 2016-09-24 08:53:28 -07:00
testcvs Another change and commit to the same branch 2016-05-02 09:13:22 -07:00
.gitattributes Add .gitattributes to fix EOL 2016-05-18 22:05:13 -07:00
.gitignore pa_mac_core: stop stream instead of asserting 2016-05-01 18:10:23 -07:00
CMakeLists.txt Install pa_win_waveformat.h with MME, DirectSound and WASAPI. 2018-12-15 15:04:20 +00:00
Doxyfile removed bindings/java from doxygen generated documentation 2015-09-06 10:26:16 +00:00
Doxyfile.developer Normalize all the line endings 2016-05-18 22:13:20 -07:00
LICENSE.txt moved trunk into place 2008-03-20 14:24:39 +00:00
Makefile.in fixed configure.in and makefile.in. attempt #2. fixes incorrect escapes in r1772 2011-11-11 04:06:17 +00:00
README.configure.txt Add support for 10.11 SDK so PortAudio can compile on Mac. 2016-01-04 17:22:00 +00:00
README.txt moved trunk into place 2008-03-20 14:24:39 +00:00
SConstruct moved trunk into place 2008-03-20 14:24:39 +00:00
aclocal.m4 Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
clear_gitrevision.sh PA_GIT_REVISION: new scripts to replace SVN revision 2016-09-05 17:03:27 -07:00
config.guess Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
config.sub Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
configure configure: support SDK 10.13 in XCode 2018-03-18 15:30:36 -07:00
configure.in commit Rainer's work and make some minor modifications to the top-level cmakelists to make visual studio happy 2018-10-02 21:54:44 +10:00
depcomp Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
fixdir.bat moved trunk into place 2008-03-20 14:24:39 +00:00
fixfile.bat moved trunk into place 2008-03-20 14:24:39 +00:00
index.html moved trunk into place 2008-03-20 14:24:39 +00:00
install-sh Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
ltmain.sh Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
missing Files needed for compiling on El Capitan. 2016-01-04 17:22:56 +00:00
portaudio-2.0.pc.in moved trunk into place 2008-03-20 14:24:39 +00:00
update_gitrevision.sh PA_GIT_REVISION: new scripts to replace SVN revision 2016-09-05 17:03:27 -07:00

README.txt

README for PortAudio

/*
 * PortAudio Portable Real-Time Audio Library
 * Latest Version at: http://www.portaudio.com
 *
 * Copyright (c) 1999-2008 Phil Burk and Ross Bencina
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files
 * (the "Software"), to deal in the Software without restriction,
 * including without limitation the rights to use, copy, modify, merge,
 * publish, distribute, sublicense, and/or sell copies of the Software,
 * and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/*
 * The text above constitutes the entire PortAudio license; however, 
 * the PortAudio community also makes the following non-binding requests:
 *
 * Any person wishing to distribute modifications to the Software is
 * requested to send the modifications to the original developer so that
 * they can be incorporated into the canonical version. It is also 
 * requested that these non-binding requests be included along with the 
 * license above.
 */


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.

Documentation:
	Documentation is available in "/doc/html/index.html"
	Also see "src/common/portaudio.h" for API spec.
	Also see http://www.portaudio.com/docs/
	And see the "test/" directory for many examples of usage
		(we suggest "test/patest_saw.c" for an example)

For information on compiling programs with PortAudio, please see the
tutorial at:

  http://portaudio.com/trac/wiki/TutorialDir/TutorialStart
  
We have an active mailing list for user and developer discussions.
Please feel free to join. See http://www.portaudio.com for details.


Important Files and Folders:
    include/portaudio.h     = header file for PortAudio API. Specifies API.	
    src/common/             = platform independant code, host independant 
                              code for all implementations.
    src/os                  = os specific (but host api neutral) code
    src/hostapi             = implementations for different host apis


Host API Implementations:
    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 Programs:
    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 syncronization of audio and video
    test/patest_wire.c     = pass input to output, wire simulator