Check whether the specified audio device is connected to the system.
#include <audio/audio_manager_device.h>
int audio_manager_is_device_connected(audio_manager_device_t dev, bool *connected)
BlackBerry 10.0.0
The type of the audio device to check against.
A pointer that's returned that specifies whether device is connected. A value of true indicates that the audio device is connected, a value of false specifies otherwise.
The audio_manager_is_device_connected() function checks whether the specified audio device is currently connected to the system. Disconnected audio devices are not picked by the audio manager as a valid routing destination/source.
EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.