ado_mixer_element_pcm2()

Create a PCM (type 2) element

Synopsis:

#include <audio_driver.h>

ado_mixer_delement_t *ado_mixer_element_pcm2
  ( ado_mixer_t *mixer,
    char *name,
    uint32_t type,
    int32_t device,
    int32_t subdevice );

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:
device
The PCM device that this element is a subdevice of; see ado_mixer_element_pcm1().
subdevice
Not currently used; set it to 0.

Description:

This convenience function automates the creation of a PCM (type 2) element. A PCM type 2 element specifies the start of a playback subchannel. This element is used when a pcm1 supports multiple subchannels.

Returns:

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

Classification:

QNX Neutrino

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

See also:

ado_mixer_create(), ado_mixer_element_pcm1()