Chris@4
|
1 README for PortAudio
|
Chris@4
|
2
|
Chris@4
|
3 /*
|
Chris@4
|
4 * PortAudio Portable Real-Time Audio Library
|
Chris@4
|
5 * Latest Version at: http://www.portaudio.com
|
Chris@4
|
6 *
|
Chris@4
|
7 * Copyright (c) 1999-2008 Phil Burk and Ross Bencina
|
Chris@4
|
8 *
|
Chris@4
|
9 * Permission is hereby granted, free of charge, to any person obtaining
|
Chris@4
|
10 * a copy of this software and associated documentation files
|
Chris@4
|
11 * (the "Software"), to deal in the Software without restriction,
|
Chris@4
|
12 * including without limitation the rights to use, copy, modify, merge,
|
Chris@4
|
13 * publish, distribute, sublicense, and/or sell copies of the Software,
|
Chris@4
|
14 * and to permit persons to whom the Software is furnished to do so,
|
Chris@4
|
15 * subject to the following conditions:
|
Chris@4
|
16 *
|
Chris@4
|
17 * The above copyright notice and this permission notice shall be
|
Chris@4
|
18 * included in all copies or substantial portions of the Software.
|
Chris@4
|
19 *
|
Chris@4
|
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
Chris@4
|
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
Chris@4
|
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
Chris@4
|
23 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
Chris@4
|
24 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
Chris@4
|
25 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
Chris@4
|
26 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
Chris@4
|
27 */
|
Chris@4
|
28
|
Chris@4
|
29 /*
|
Chris@4
|
30 * The text above constitutes the entire PortAudio license; however,
|
Chris@4
|
31 * the PortAudio community also makes the following non-binding requests:
|
Chris@4
|
32 *
|
Chris@4
|
33 * Any person wishing to distribute modifications to the Software is
|
Chris@4
|
34 * requested to send the modifications to the original developer so that
|
Chris@4
|
35 * they can be incorporated into the canonical version. It is also
|
Chris@4
|
36 * requested that these non-binding requests be included along with the
|
Chris@4
|
37 * license above.
|
Chris@4
|
38 */
|
Chris@4
|
39
|
Chris@4
|
40
|
Chris@4
|
41 PortAudio is a portable audio I/O library designed for cross-platform
|
Chris@4
|
42 support of audio. It uses either a callback mechanism to request audio
|
Chris@4
|
43 processing, or blocking read/write calls to buffer data between the
|
Chris@4
|
44 native audio subsystem and the client. Audio can be processed in various
|
Chris@4
|
45 formats, including 32 bit floating point, and will be converted to the
|
Chris@4
|
46 native format internally.
|
Chris@4
|
47
|
Chris@4
|
48 Documentation:
|
Chris@4
|
49 Documentation is available in "/doc/html/index.html"
|
Chris@4
|
50 Also see "src/common/portaudio.h" for API spec.
|
Chris@4
|
51 Also see http://www.portaudio.com/docs/
|
Chris@4
|
52 And see the "test/" directory for many examples of usage
|
Chris@4
|
53 (we suggest "test/patest_saw.c" for an example)
|
Chris@4
|
54
|
Chris@4
|
55 For information on compiling programs with PortAudio, please see the
|
Chris@4
|
56 tutorial at:
|
Chris@4
|
57
|
Chris@4
|
58 http://portaudio.com/trac/wiki/TutorialDir/TutorialStart
|
Chris@4
|
59
|
Chris@4
|
60 We have an active mailing list for user and developer discussions.
|
Chris@4
|
61 Please feel free to join. See http://www.portaudio.com for details.
|
Chris@4
|
62
|
Chris@4
|
63
|
Chris@4
|
64 Important Files and Folders:
|
Chris@4
|
65 include/portaudio.h = header file for PortAudio API. Specifies API.
|
Chris@4
|
66 src/common/ = platform independant code, host independant
|
Chris@4
|
67 code for all implementations.
|
Chris@4
|
68 src/os = os specific (but host api neutral) code
|
Chris@4
|
69 src/hostapi = implementations for different host apis
|
Chris@4
|
70
|
Chris@4
|
71
|
Chris@4
|
72 Host API Implementations:
|
Chris@4
|
73 src/hostapi/alsa = Advanced Linux Sound Architecture (ALSA)
|
Chris@4
|
74 src/hostapi/asihpi = AudioScience HPI
|
Chris@4
|
75 src/hostapi/asio = ASIO for Windows and Macintosh
|
Chris@4
|
76 src/hostapi/coreaudio = Macintosh Core Audio for OS X
|
Chris@4
|
77 src/hostapi/dsound = Windows Direct Sound
|
Chris@4
|
78 src/hostapi/jack = JACK Audio Connection Kit
|
Chris@4
|
79 src/hostapi/oss = Unix Open Sound System (OSS)
|
Chris@4
|
80 src/hostapi/wasapi = Windows Vista WASAPI
|
Chris@4
|
81 src/hostapi/wdmks = Windows WDM Kernel Streaming
|
Chris@4
|
82 src/hostapi/wmme = Windows MultiMedia Extensions (MME)
|
Chris@4
|
83
|
Chris@4
|
84
|
Chris@4
|
85 Test Programs:
|
Chris@4
|
86 test/pa_fuzz.c = guitar fuzz box
|
Chris@4
|
87 test/pa_devs.c = print a list of available devices
|
Chris@4
|
88 test/pa_minlat.c = determine minimum latency for your machine
|
Chris@4
|
89 test/paqa_devs.c = self test that opens all devices
|
Chris@4
|
90 test/paqa_errs.c = test error detection and reporting
|
Chris@4
|
91 test/patest_clip.c = hear a sine wave clipped and unclipped
|
Chris@4
|
92 test/patest_dither.c = hear effects of dithering (extremely subtle)
|
Chris@4
|
93 test/patest_pink.c = fun with pink noise
|
Chris@4
|
94 test/patest_record.c = record and playback some audio
|
Chris@4
|
95 test/patest_maxsines.c = how many sine waves can we play? Tests Pa_GetCPULoad().
|
Chris@4
|
96 test/patest_sine.c = output a sine wave in a simple PA app
|
Chris@4
|
97 test/patest_sync.c = test syncronization of audio and video
|
Chris@4
|
98 test/patest_wire.c = pass input to output, wire simulator
|