To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.
root / src / portaudio_20161030_catalina_patch / doc / src / tutorial / terminating_portaudio.dox @ 164:9fa11135915a
History | View | Annotate | Download (545 Bytes)
| 1 |
/** @page terminating_portaudio Closing a Stream and Terminating PortAudio |
|---|---|
| 2 |
@ingroup tutorial |
| 3 |
|
| 4 |
When you are done with a stream, you should close it to free up resources: |
| 5 |
|
| 6 |
@code |
| 7 |
err = Pa_CloseStream( stream ); |
| 8 |
if( err != paNoError ) goto error; |
| 9 |
@endcode |
| 10 |
|
| 11 |
We've already mentioned this in \ref initializing_portaudio, but in case you forgot, be sure to terminate PortAudio when you are done: |
| 12 |
|
| 13 |
@code |
| 14 |
err = Pa_Terminate( ); |
| 15 |
if( err != paNoError ) goto error; |
| 16 |
@endcode |
| 17 |
|
| 18 |
Previous: \ref start_stop_abort | Next: \ref utility_functions |
| 19 |
|
| 20 |
*/ |