Close a control handle
#include <sys/asoundlib.h> int snd_ctl_close( snd_ctl_t * handle );
libasound.so
The snd_ctl_close() function frees all the resources allocated with the audio handle and closes the connection to the sound control interface.
Zero on success, or a negative value on error.
See the example in Closing the mixer in the Controlling volume and balance chapter.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |