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_COUNT is specified, the current audio type is used.
The preferred output routing of the new audio type. If AUDIO_DEVICE_DEFAULT is specified, the current preferred output device is used.
The preferred input routing of the new audio type. If AUDIO_DEVICE_DEFAULT is specified, the current preferred input device is used.
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.