![]() |
![]() |
![]() |
![]() |
Create a switch (type 3) element
#include <audio_driver.h>
ado_mixer_delement_t *ado_mixer_element_sw3
( ado_mixer_t *mixer,
char *name,
uint32_t type,
uint32_t number_of_voices,
snd_mixer_voice_t *voices,
ado_mixer_delement_control_sw3_t *control,
void *instance_data,
void (*instance_free) (void *data) );
The prototype is:
int32_t control(
MIXER_CONTEXT_T *context,
ado_mixer_delement_t *element,
uint8_t set,
uint32_t *bitmap,
void *instance_data );
If you need to access this instance data, you have to call ado_mixer_get_element_instance_data() because ado_mixer_delement_t is an opaque data type.
The ado_mixer_element_sw3() convenience function automates the creation of a switch (type 3) element. A switch type 3 element represents a switch with one or more inputs and outputs that can be routed to each other.
A pointer to the newly allocated switch (type 3) element.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
ado_mixer_create(), ado_mixer_element_sw1(), ado_mixer_element_sw2(), ado_mixer_get_element_instance_data()
![]() |
![]() |
![]() |
![]() |