audiodevice_info_get_dependency()

Retrieve the dependency of the audio device specified in an audio device information structure.

Synopsis:

#include <bps/audiodevice.h>
 
BPS_API audiodevice_device_t audiodevice_info_get_dependency(audiodevice_info_t *info)

Since:

BlackBerry 10.0.0

Arguments:

info

The audiodevice_info_t structure to get the dependency from.

Library:

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

Description:

The audiodevice_info_get_dependency() function gets the dependency of the audio device in the specified audiodevice_info_t structure. The device has no effect unless the dependency is also connected. If there is no dependency, this function will return a value of AUDIODEVICE_DEVICE_UNRECOGNIZED.

Returns:

The dependency or AUDIODEVICE_DEVICE_UNRECOGNIZED if there is no dependency.