PortAudio Tutorial |
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:
home | contents | previous | nextThen when you are done using PortAudio, you should terminate the whole system by calling:err = Pa_CloseStream( stream ); if( err != paNoError ) goto error;That's basically it. You can now write an audio program in 'C' that will run on multiple platforms, for example PCs and Macintosh.Pa_Terminate();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.