Author: Phil Burk
Description: 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.
Keywords: audio, tutorial, library, portable, open-source, DirectSound,sound, music, JSyn, synthesis,

# PortAudio Tutorial

## Initializing PortAudio

> Before making any other calls to PortAudio, you must call `Pa_Initialize`(). This will trigger a scan of available devices which can be queried later. Like most PA functions, it will return a result of type `paError`. If the result is not `paNoError`, then an error has occurred.

> >     err = Pa_Initialize();
> >     if( err != paNoError ) goto error;

> You can get a text message that explains the error message by passing it to

> >     printf(  "PortAudio error: %s\n", Pa_GetErrorText( err ) );

home | contents | previous | next