summaryrefslogtreecommitdiff
path: root/3rdparty/portaudio/doc/src/tutorial/terminating_portaudio.dox
blob: 67f74f6bc78be7a9c73b3595cecefed7fb1c26d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** @page terminating_portaudio Closing a Stream and Terminating PortAudio
@ingroup tutorial

When you are done with a stream, you should close it to free up resources:

@code
    err = Pa_CloseStream( stream );
    if( err != paNoError ) goto error;
@endcode

We've already mentioned this in \ref initializing_portaudio, but in case you forgot, be sure to terminate PortAudio when you are done:

@code
    err = Pa_Terminate( );
    if( err != paNoError ) goto error;
@endcode

Previous: \ref start_stop_abort | Next: \ref utility_functions

*/