Get the number of groups in the mixer and their group IDs
#include <sys/asoundlib.h> int snd_mixer_groups( snd_mixer_t *handle, snd_mixer_groups_t *groups );
libasound.so
The snd_mixer_groups() function fills the given snd_mixer_groups_t structure with the number of groups in the mixer that the handle was opened on. It also fills in the array of group IDs pointed to by pgroups to a limit of groups_size.
Before calling snd_mixer_groups(), set the members of the snd_mixer_groups_t as follows:
On a successful return, snd_mixer_groups() fills in these members:
Zero on success, or a negative value on error.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
snd_mixer_gid_t, snd_mixer_group_read(), snd_mixer_group_write(), snd_mixer_groups_t, snd_mixer_sort_gid_table()