Set the audio type of a given audio manager handle.
#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)
The audio manager handle that the new type is applied to.
The new audio type to be set to the given audio manager handle. If AUDIO_TYPE_UNCHANGED is specified, the audio type is unchanged.
The preferred output routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the preferred output device is unchanged.
The preferred input routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the preferred input device is unchanged.
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.
EOK upon success, negative errno upon failure.