audio_manager_get_device_dependency()

Get the dependency of an audio device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_dependency(audio_manager_device_t dev, audio_manager_device_t *dev_dependent)

Since:

BlackBerry 10.0.0

Arguments:

dev

The type of the audio device to query.

dev_dependent

The associated dependent audio device that's returned.

Library:

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

Description:

Use audio_manager_get_device_dependency() to determine the dependency of an audio device. An audio device with an inactive dependency is not used by the audio manager service as a valid routing destination or source. An inactive dependency can be:
  • suspended
  • unsupported
  • disconnected

Returns:

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