Lines Matching refs:aec
12 * Contains the API functions for the AEC.
14 #include "webrtc/modules/audio_processing/aec/include/echo_cancellation.h"
24 #include "webrtc/modules/audio_processing/aec/aec_core.h"
25 #include "webrtc/modules/audio_processing/aec/aec_resampler.h"
26 #include "webrtc/modules/audio_processing/aec/echo_cancellation_internal.h"
46 // which are incompatible with the AEC's expectations. Based on measurements
56 // havoc with the AEC's buffering. To avoid this, we set a fixed delay of 20 ms
62 // well to reality. The variance doesn't match the AEC's buffer changes, and the
135 if (WebRtcAec_CreateAec(&aecpc->aec) == -1) {
191 WebRtcAec_FreeAec(aecpc->aec);
215 if (WebRtcAec_InitAec(aecpc->aec, aecpc->sampFreq) == -1) {
249 aecpc->startup_phase = WebRtcAec_reported_delay_enabled(aecpc->aec);
316 WebRtcAec_SetSystemDelay(aecpc->aec,
317 WebRtcAec_system_delay(aecpc->aec) + newNrOfSamples);
329 WebRtcAec_BufferFarendPartition(aecpc->aec, ptmp);
332 WebRtcAec_far_time_buf(aecpc->aec), &ptmp[PART_LEN], 1);
390 // This returns the value of aec->extended_filter_enabled.
391 if (WebRtcAec_delay_correction_enabled(aecpc->aec)) {
409 int16_t far_buf_size_ms = (int16_t)(WebRtcAec_system_delay(aecpc->aec) /
451 self->aec, config.nlpMode, config.metricsMode, config.delay_logging);
466 *status = WebRtcAec_echo_state(self->aec);
492 WebRtcAec_GetEchoStats(self->aec, &erl, &erle, &a_nlp);
582 if (WebRtcAec_GetDelayMetricsCore(self->aec, median, std) == -1) {
600 return ((aecpc_t*)handle)->aec;
667 // The AEC is in the start up mode
668 // AEC is disabled until the system delay is OK
720 WebRtcAec_system_delay(aecpc->aec) / PART_LEN - aecpc->bufSizeStart;
722 // Enable the AEC
728 // to the buffer and no delay compensation nor AEC processing
730 WebRtcAec_MoveFarReadPtr(aecpc->aec, overhead_elements);
732 // Enable the AEC
737 // AEC is enabled.
738 if (WebRtcAec_reported_delay_enabled(aecpc->aec)) {
744 // Call the AEC.
745 WebRtcAec_ProcessFrame(aecpc->aec,
808 int overhead_elements = (WebRtcAec_system_delay(self->aec) -
811 WebRtcAec_MoveFarReadPtr(self->aec, overhead_elements);
815 if (WebRtcAec_reported_delay_enabled(self->aec)) {
827 WebRtcAec_ProcessFrame(self->aec,
839 int current_delay = nSampSndCard - WebRtcAec_system_delay(aecpc->aec);
858 current_delay += WebRtcAec_MoveFarReadPtr(aecpc->aec, 1) * PART_LEN;
892 int current_delay = reported_delay - WebRtcAec_system_delay(self->aec);
911 current_delay += WebRtcAec_MoveFarReadPtr(self->aec, 2) * PART_LEN;