Index: webrtc/modules/audio_processing/aec/include/echo_cancellation.h |
diff --git a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h |
index a340cf84d0d79f13b3658bf142817cf6f92576cf..c85f263ce27849b830aa7575b911152db4da2047 100644 |
--- a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h |
+++ b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h |
@@ -109,13 +109,32 @@ int32_t WebRtcAec_Init(void* aecInst, int32_t sampFreq, int32_t scSampFreq); |
* Outputs Description |
* ------------------------------------------------------------------- |
* int32_t return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int32_t WebRtcAec_BufferFarend(void* aecInst, |
const float* farend, |
size_t nrOfSamples); |
/* |
+ * Reports any errors that would arise if buffering a farend buffer |
+ * |
+ * Inputs Description |
+ * ------------------------------------------------------------------- |
+ * void* aecInst Pointer to the AEC instance |
+ * const float* farend In buffer containing one frame of |
+ * farend signal for L band |
+ * int16_t nrOfSamples Number of samples in farend buffer |
+ * |
+ * Outputs Description |
+ * ------------------------------------------------------------------- |
+ * int32_t return 0: OK |
+ * int32_t return 12000-12050: error code |
+ */ |
+int32_t WebRtcAec_GetBufferFarendError(void* aecInst, |
+ const float* farend, |
+ size_t nrOfSamples); |
+ |
+/* |
* Runs the echo canceller on an 80 or 160 sample blocks of data. |
* |
* Inputs Description |
@@ -136,7 +155,7 @@ int32_t WebRtcAec_BufferFarend(void* aecInst, |
* float* const* out Out buffer, one frame of processed nearend |
* for each band |
* int32_t return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int32_t WebRtcAec_Process(void* aecInst, |
const float* const* nearend, |
@@ -158,7 +177,7 @@ int32_t WebRtcAec_Process(void* aecInst, |
* Outputs Description |
* ------------------------------------------------------------------- |
* int return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int WebRtcAec_set_config(void* handle, AecConfig config); |
@@ -174,7 +193,7 @@ int WebRtcAec_set_config(void* handle, AecConfig config); |
* int* status 0: Almost certainly nearend single-talk |
* 1: Might not be neared single-talk |
* int return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int WebRtcAec_get_echo_status(void* handle, int* status); |
@@ -190,7 +209,7 @@ int WebRtcAec_get_echo_status(void* handle, int* status); |
* AecMetrics* metrics Struct which will be filled out with the |
* current echo metrics. |
* int return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics); |
@@ -209,7 +228,7 @@ int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics); |
* cause the AEC to perform poorly. |
* |
* int return 0: OK |
- * -1: error |
+ * int32_t return 12000-12050: error code |
*/ |
int WebRtcAec_GetDelayMetrics(void* handle, |
int* median, |
@@ -225,7 +244,7 @@ int WebRtcAec_GetDelayMetrics(void* handle, |
* |
* Outputs Description |
* ------------------------------------------------------------------- |
- * int32_t return 11000-11100: error code |
+ * int32_t return 12000-12050: error code |
*/ |
int32_t WebRtcAec_get_error_code(void* aecInst); |
hlundin-webrtc
2015/10/14 14:34:49
Remove this too.
peah-webrtc
2015/10/14 17:57:36
Done.
|