Create a PCM (type 1) element
#include <audio_driver.h>
ado_mixer_delement_t *ado_mixer_element_pcm1
( ado_mixer_t *mixer,
char *name,
int32_t type,
uint32_t number_of_devices,
int32_t *devices );
- mixer
- A pointer to the ado_mixer_t structure that specifies the
mixer to create the element in.
This structure was created by
ado_mixer_create().
- name
- The name of the element.
Elements are referred to by name, so be careful; for some standard names, see
<asound.h>.
- type
- The type of the element; one of:
- SND_MIXER_ETYPE_CAPTURE1
- SND_MIXER_ETYPE_PLAYBACK1
- number_of_devices
- The number of physical devices used to make this element (usually 1).
- devices
- An array of device numbers that identify the physical devices used.
The ado_mixer_element_pcm1() convenience function
automates the creation of a PCM (type 1) element.
A PCM type 1 element specifies the start of a playback channel.
A pointer to the newly allocated PCM (type 1) element.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ado_mixer_create(),
ado_mixer_element_pcm2()