![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Adjust a mixer switch setting
#include < sys/asoundlib.h >
int snd_ctl_mixer_switch_write(
snd_ctl_t *handle,
int dev,
snd_switch_t * sw )
libasound.so
The snd_ctl_mixer_switch_write() function writes the snd_switch_t structure for the switch identified by the structure's name member.
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 |
The switch struct must be initialized completely before making the call.
snd_mixer_group_write(), mix_ctl.c application example source code
![]() |
![]() |
![]() |
![]() |