audio_manager_set_handle_type()

Set the audio type of a given audio manager handle.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_set_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 new audio type to be set to the given audio manager handle. If AUDIO_TYPE_UNCHANGED is specified, the audio type is unchanged.

pref_output

The preferred output routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the preferred output device is unchanged.

pref_input

The preferred input routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the preferred input device is unchanged.

Library:

libaudio_manager

Description:

The audio_manager_set_handle_type() function sets the audio type of a given audio manager handle and gives the option to override the default audio type routing policy by specifying the preferred output and input audio devices.

Returns:

EOK upon success, negative errno upon failure.