[Previous] [Contents] [Next]

snd_mixer_close()

Close a control handle

Synopsis:

#include <sys/asoundlib.h>

int snd_mixer_close( snd_mixer_t * handle );

Library:

libasound.so

Description:

The snd_mixer_close() function frees all the resources allocated with the mixer handle and closes the connection to the sound mixer interface.

Returns:

Zero on success, or a negative value on error.

Errors:

-EBADF
Invalid file descriptor filedes.
-EINTR
The close() call was interrupted by a signal.
-EINVAL
Invalid handle argument.
-EIO
An I/O error occurred while updating the directory information.
-ENOSPC
A previous buffered write call has failed.

Examples:

See the example in Closing the mixer in the Controlling volume and balance chapter.

Classification:

ALSA

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

snd_mixer_open()


[Previous] [Contents] [Next]