Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 8
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 )
- handle
- The handle for the control device. This must have been created by
snd_ctl_open().
- dev
- The mixer device the switches apply to.
- sw
- A pointer to a snd_switch_t structure that
snd_ctl_mixer_switch_write() writes to the driver about
the switch.
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.
- -EINVAL
- Invalid handle argument.
- -ENXIO
- The group wasn't found.
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
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 146
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_ctl_mixer_switch_write.html on line 146