| 1 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 5 | <meta name="GENERATOR" content="Mozilla/4.77 [en]C-gatewaynet (Win98; U) [Netscape]"> |
| 6 | <meta name="Author" content="Phil Burk"> |
| 7 | <meta name="Description" content="Tutorial for PortAudio, a cross platform, open-source, audio I/O library.It provides a very simple API for recording and/or playing sound using a simple callback function."> |
| 8 | <meta name="KeyWords" content="audio, tutorial, library, portable, open-source, DirectSound,sound, music, JSyn, synthesis,"> |
| 9 | <title>PortAudio Tutorial</title> |
| 10 | </head> |
| 11 | <body> |
| 12 | |
| 13 | <center><table COLS=1 WIDTH="100%" BGCOLOR="#FADA7A" > |
| 14 | <tr> |
| 15 | <td> |
| 16 | <center> |
| 17 | <h1> |
| 18 | PortAudio Tutorial</h1></center> |
| 19 | </td> |
| 20 | </tr> |
| 21 | </table></center> |
| 22 | |
| 23 | <h2> |
| 24 | Compiling for ASIO (Windows or Macintosh)</h2> |
| 25 | |
| 26 | <blockquote>ASIO is a low latency audio API from Steinberg. To compile |
| 27 | an ASIO application, you must first <a href="http://www.steinberg.net/developers/ASIO2SDKAbout.phtml">download |
| 28 | the ASIO SDK</a> from Steinberg. You also need to obtain ASIO drivers for |
| 29 | your audio device. |
| 30 | <p>Note: I am using '/' as a file separator below. On Macintosh replace |
| 31 | '/' with ':'. On Windows, replace '/' with '\'. |
| 32 | <p> To use ASIO with the PortAudio library add the following source |
| 33 | files to your project: |
| 34 | <blockquote> |
| 35 | <pre>pa_asio/pa_asio.cpp</pre> |
| 36 | </blockquote> |
| 37 | and also these files from the ASIO SDK: |
| 38 | <blockquote> |
| 39 | <pre>common/asio.cpp |
| 40 | host/asiodrivers.cpp |
| 41 | host/asiolist.cpp</pre> |
| 42 | </blockquote> |
| 43 | and add these directories to the path for include files |
| 44 | <blockquote> |
| 45 | <pre>asiosdk2/host/pc (for Windows) |
| 46 | asiosdk2/common |
| 47 | asiosdk2/host</pre> |
| 48 | </blockquote> |
| 49 | You may try compiling the "pa_tests/patest_saw.c" file first because it |
| 50 | is the simplest.</blockquote> |
| 51 | <font size=+2><a href="http://www.portaudio.com/">home</a> | |
| 52 | <a href="pa_tutorial.html">contents</a> |
| 53 | | <a href="pa_tut_over.html">previous</a> | <a href="pa_tut_callback.html">next</a></font> |
| 54 | </body> |
| 55 | </html> |