PortAudio Tutorial

Terminating PortAudio

You can start and stop a stream as many times as you like. But when you are done using it, you should close it by calling:
err = Pa_CloseStream( stream );
if( err != paNoError ) goto error;
Then when you are done using PortAudio, you should terminate the whole system by calling:
Pa_Terminate();
That's basically it. You can now write an audio program in 'C' that will run on multiple platforms, for example PCs and Macintosh.

In the rest of the tutorial we will look at some additional utility functions, and a different way of using PortAudio that does not require the use of a callback function.

home | contents | previousnext