audio_manager_get_device_capability()

Get the capabilities of an audio device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_capability(audio_manager_device_t dev, audio_manager_device_capability_t *cap_mask)

Since:

BlackBerry 10.0.0

Arguments:

dev

The type of the audio device to query.

cap_mask

The capabilities of the audio device that are returned as a mask of audio_manager_device_capability_t.

Library:

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

Description:

Use audio_manager_get_device_capability() to retrieve the capabilities of the specified audio device. The capabilities indicate whether the device is capable of output, input, or both.

Returns:

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