| 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.73 [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 | Terminating PortAudio</h2> |
| 25 | |
| 26 | <blockquote>You can start and stop a stream as many times as you like. |
| 27 | But when you are done using it, you should close it by calling:</blockquote> |
| 28 | |
| 29 | <blockquote> |
| 30 | <blockquote> |
| 31 | <pre>err = Pa_CloseStream( stream ); |
| 32 | if( err != paNoError ) goto error;</pre> |
| 33 | </blockquote> |
| 34 | Then when you are done using PortAudio, you should terminate the whole |
| 35 | system by calling: |
| 36 | <blockquote> |
| 37 | <pre>Pa_Terminate();</pre> |
| 38 | </blockquote> |
| 39 | That's basically it. You can now write an audio program in 'C' that will |
| 40 | run on multiple platforms, for example PCs and Macintosh. |
| 41 | <p>In the rest of the tutorial we will look at some additional utility |
| 42 | functions, and a different way of using PortAudio that does not require |
| 43 | the use of a callback function.</blockquote> |
| 44 | <font size=+2><a href="http://www.portaudio.com/">home</a> | <a href="pa_tutorial.html">contents</a> |
| 45 | | <a href="pa_tut_run.html">previous</a> | <a href="pa_tut_util.html">next</a></font> |
| 46 | </body> |
| 47 | </html> |