Create a new connection and handle to the mixer device
#include <sys/asoundlib.h>
int snd_mixer_open( void ** handle,
int card,
int device );
libasound.so
The snd_mixer_open() function creates a new connection and handle to the mixer device specified by the card and device number. This handle may be used by all snd_mixer_*() calls.
Zero on success, or a negative value on error.
See the example in Opening the mixer in the Controlling volume and balance chapter.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
snd_mixer_close(), snd_mixer_read()