audio_manager_set_voice_service_status_with_codec_settings()

Set the status and the codec settings of a given voice service type.

Synopsis:

#include <audio/audio_manager_voice_service.h>
 
int audio_manager_set_voice_service_status_with_codec_settings(audio_manager_voice_service_t service, audio_manager_voice_service_status_t status, const char *codec_name, int codec_rate)

Arguments:

service

The voice service type that the new status is applied to.

status

The status to be applied.

codec_name

The name of the codec the service provider uses.

codec_rate

The audio sample rate the service provider uses.

Library:

libaudio_manager

Description:

The audio_manager_set_voice_service_status_with_codec_settings() function sets the status and the codec settings of a given voice service type.

A process must have either an effective user ID of root, or the authman capability of access_audio_manager, to use this function.

Note that this function is intended for use by system components. Therefore, it is not suitable for all applications.

Returns:

EOK upon success, negative errno upon failure.