![]() |
![]() |
![]() |
Open a control device
#include <sys/asoundlib.h> int snd_ctl_open( snd_ctl_t ** handle, int card );
libasound.a
The snd_ctl_open() function creates a new handle and opens a connection to the sound control interface for a sound card number card (0-N). This handle may be used in all of the other snd_ctl_*() calls.
Zero on success, or a negative value if an error occurs.
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 |
![]() |
![]() |
![]() |