Search a mixer for an element
#include <audio_driver.h>
ado_mixer_delement_t *ado_mixer_find_element
( ado_mixer_t *mixer,
int32_t type,
int8_t *name,
int32_t index );
- mixer
- The mixer to search.
This is a pointer to the ado_mixer_t structure created by
ado_mixer_create().
- type
- The type of element; one of:
- SND_MIXER_ETYPE_INPUT
- SND_MIXER_ETYPE_ADC
- SND_MIXER_ETYPE_CAPTURE1
- SND_MIXER_ETYPE_CAPTURE2
- SND_MIXER_ETYPE_OUTPUT
- SND_MIXER_ETYPE_DAC
- SND_MIXER_ETYPE_PLAYBACK1
- SND_MIXER_ETYPE_PLAYBACK2
- SND_MIXER_ETYPE_SWITCH1
- SND_MIXER_ETYPE_SWITCH2
- SND_MIXER_ETYPE_SWITCH3
- SND_MIXER_ETYPE_VOLUME1
- SND_MIXER_ETYPE_VOLUME2
- SND_MIXER_ETYPE_ACCU1
- SND_MIXER_ETYPE_ACCU2
- SND_MIXER_ETYPE_ACCU3
- SND_MIXER_ETYPE_MUX1
- SND_MIXER_ETYPE_MUX2
- SND_MIXER_ETYPE_TONE_CONTROL1
- SND_MIXER_ETYPE_3D_EFFECT1
- SND_MIXER_ETYPE_EQUALIZER1
- SND_MIXER_ETYPE_PAN_CONTROL1
- SND_MIXER_ETYPE_PRE_EFFECT1
- name
- The name of the element.
- index
- The index of the element.
The ado_mixer_find_element() function searches
all elements in a mixer for a given element.
A pointer to the element,
or NULL if no exact match was found.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ado_mixer_find_group()