Get a mixer switch setting
#include <sys/asoundlib.h > int snd_ctl_mixer_switch_read( snd_ctl_t *handle, int dev, snd_switch_t * sw )
libasound.so
The snd_ctl_mixer_switch_read() function reads the snd_switch_t structure for the switch identified by the name member of the structure.
You must initialize the name member before calling this function. |
Zero on success, or a negative value if an error occurs.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
snd_mixer_groups(), mix_ctl.c application example source code