audio_manager_is_device_connected()

Check whether a given audio device is connected to the system.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_is_device_connected(audio_manager_device_t dev, bool *connected)

Arguments:

dev

The type of the audio device to check against.

connected

true if the specified audio device is connected, false otherwise.

Library:

libaudio_manager

Description:

The audio_manager_is_device_connected() function checks whether a given audio device is currently connected to the system. Disconnected audio devices are not picked by the audio manager as a valid routing destination/source.

Returns:

EOK upon success, negative errno upon failure.