![]() |
![]() |
![]() |
![]() |
Get the number of elements in the mixer and their element IDs
#include <sys/asoundlib.h>
int snd_mixer_elements(
snd_mixer_t *handle,
snd_mixer_elements_t *elements );
libasound.so
The snd_mixer_elements() function fills the given snd_mixer_elements_t structure with the number of elements in the mixer that the handle was opened on. It also fills in the array of element IDs pointed to by pelements to a limit of elements_size.
![]() |
We recommend that you work with mixer groups instead of manipulating the elements directly. |
Before calling snd_mixer_elements(), set the snd_mixer_elements_t structure as follows:
On a successful return, snd_mixer_elements() sets 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_eid_t, snd_mixer_element_read(), snd_mixer_element_write(), snd_mixer_elements_t, snd_mixer_sort_eid_table()
![]() |
![]() |
![]() |
![]() |