Set the audio type of the specified 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)
BlackBerry 10.0.0
The audio manager handle that the new type is applied to.
The new audio type that's set to the specified 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 p referred input device is unchanged.
An audio manager handle is used to track each audio source. The audio_manager_set_handle_type() function sets the audio type of a specified handle to the audio source and specifies the option to override the default audio type routing policy. To override the default audio type policy, the preferred output and input audio devices are specified.
EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.