Get the number of routes in the mixer and their IDs
#include <sys/asoundlib.h> int snd_mixer_routes( snd_mixer_t *handle, snd_mixer_routes_t *routes );
libasound.so
The snd_mixer_routes() function fills the given snd_mixer_routes_t structure with the number of routes in the mixer that the handle was opened on. It also fills in the array of route IDs pointed to by proutes to a limit of routes_size.
We recommend that you work with mixer groups instead of manipulating the elements directly. |
Before calling snd_mixer_routes(), set the members of this structure as follows:
On a successful return, the function 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_elements(), snd_mixer_groups(), snd_mixer_routes_t