audio_manager_snd_pcm_open()

Open a PCM channel using the specified audio type, audio card, and device.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_snd_pcm_open(audio_manager_audio_type_t type, snd_pcm_t **handle, unsigned int *audioman_handle, int card, int device, int mode)

Since:

BlackBerry 10.0.0

Arguments:

type

The audio type of the PCM channel being allocated.

handle

The handle of the PCM channel opened

audioman_handle

The audio manager handle allocated to the PCM channel.

card

The audio card to be used to open the PCM channel.

device

The audio device to be used to open the PCM channel.

mode

The PCM channel mode defined in asoundlib.h.

Library:

libaudio_manager (For the qcc command, use the -l audio_manager option to link against this library)

Description:

The audio_manager_snd_pcm_open() function combines the following functionality into a single step:

Returns:

EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.