ado_mixer_element_pcm1()

Create a PCM (type 1) element

Synopsis:

#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 );

Arguments:

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:
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.

Description:

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.

Returns:

A pointer to the newly allocated PCM (type 1) element.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

ado_mixer_create(), ado_mixer_element_pcm2()