audio_manager_get_handle_type()

Retrieve the audio type of a given audio manager handle.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_get_handle_type(unsigned int audioman_handle, audio_manager_audio_type_t *type, audio_manager_device_t *pref_output, audio_manager_device_t *pref_input)

Arguments:

audioman_handle

The audio manager handle that the new type is applied to.

type

The audio type that has been set on the given audio manager handle.

pref_output

The preferred output routing of the handle.

pref_input

The preferred input routing of the handle.

Library:

libaudio_manager

Description:

The audio_manager_get_handle_type() function gets the audio type of a given audio manager handle and the overrides of the default audio type routing policy for the preferred output and input audio devices.

Returns:

EOK upon success, negative errno upon failure.