audio_manager_get_voice_service_status_with_codec_settings()

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

Synopsis:

#include <audio/audio_manager_voice_service.h>
 
int audio_manager_get_voice_service_status_with_codec_settings(audio_manager_voice_service_t service, audio_manager_voice_service_status_t *status, char *codec_name_buf, int buf_size, int *codec_rate)

Arguments:

service

The voice service type to query.

status

The status returned.

codec_name_buf

The buffer to store the name of the codec the service provider uses; NULL if not needed.

buf_size

The size of the codec_name_buf.

codec_rate

The pointer to store the audio sample rate of the service provider.

Library:

libaudio_manager

Description:

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

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.