Chromium Code Reviews| Index: webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h |
| diff --git a/webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h b/webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h |
| index 7ae15c2a3d62d7fc7cf620110e61ac788cbe548a..302894260b87a6f72ae9ecf0f849e175c8a7f582 100644 |
| --- a/webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h |
| +++ b/webrtc/modules/audio_processing/aecm/include/echo_control_mobile.h |
| @@ -66,7 +66,7 @@ void WebRtcAecm_Free(void* aecmInst); |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_Init(void* aecmInst, int32_t sampFreq); |
| @@ -83,13 +83,32 @@ int32_t WebRtcAecm_Init(void* aecmInst, int32_t sampFreq); |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_BufferFarend(void* aecmInst, |
| const int16_t* farend, |
| size_t nrOfSamples); |
| /* |
| + * Reports any errors that would arise if buffering a farend buffer |
|
hlundin-webrtc
2015/10/14 14:34:49
End with .
peah-webrtc
2015/10/14 17:57:36
Done.
|
| + * |
| + * Inputs Description |
| + * ------------------------------------------------------------------- |
| + * void* aecmInst Pointer to the AECM instance |
| + * int16_t* farend In buffer containing one frame of |
| + * farend signal |
| + * int16_t nrOfSamples Number of samples in farend buffer |
| + * |
| + * Outputs Description |
| + * ------------------------------------------------------------------- |
| + * int32_t return 0: OK |
| + * 1200-12004,12100: error/warning |
| + */ |
| +int32_t WebRtcAecm_GetBufferFarendError(void* aecmInst, |
| + const int16_t* farend, |
| + size_t nrOfSamples); |
| + |
| +/* |
| * Runs the AECM on an 80 or 160 sample blocks of data. |
| * |
| * Inputs Description |
| @@ -112,7 +131,7 @@ int32_t WebRtcAecm_BufferFarend(void* aecmInst, |
| * ------------------------------------------------------------------- |
| * int16_t* out Out buffer, one frame of processed nearend |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_Process(void* aecmInst, |
| const int16_t* nearendNoisy, |
| @@ -133,27 +152,11 @@ int32_t WebRtcAecm_Process(void* aecmInst, |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_set_config(void* aecmInst, AecmConfig config); |
| /* |
| - * This function enables the user to set certain parameters on-the-fly |
| - * |
| - * Inputs Description |
| - * ------------------------------------------------------------------- |
| - * void* aecmInst Pointer to the AECM instance |
| - * |
| - * Outputs Description |
| - * ------------------------------------------------------------------- |
| - * AecmConfig* config Pointer to the config instance that |
| - * all properties will be written to |
| - * int32_t return 0: OK |
| - * -1: error |
| - */ |
| -int32_t WebRtcAecm_get_config(void *aecmInst, AecmConfig *config); |
| - |
| -/* |
| * This function enables the user to set the echo path on-the-fly. |
| * |
| * Inputs Description |
| @@ -165,7 +168,7 @@ int32_t WebRtcAecm_get_config(void *aecmInst, AecmConfig *config); |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_InitEchoPath(void* aecmInst, |
| const void* echo_path, |
| @@ -184,7 +187,7 @@ int32_t WebRtcAecm_InitEchoPath(void* aecmInst, |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| * int32_t return 0: OK |
| - * -1: error |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_GetEchoPath(void* aecmInst, |
| void* echo_path, |
| @@ -208,7 +211,7 @@ size_t WebRtcAecm_echo_path_size_bytes(); |
| * |
| * Outputs Description |
| * ------------------------------------------------------------------- |
| - * int32_t return 11000-11100: error code |
| + * 1200-12004,12100: error/warning |
| */ |
| int32_t WebRtcAecm_get_error_code(void *aecmInst); |
|
hlundin-webrtc
2015/10/14 14:34:49
Remove the declaration too.
peah-webrtc
2015/10/14 17:57:36
Done.
|