Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: webrtc/modules/audio_processing/aec/aec_core.h

Issue 2311833002: Refactoring of the buffering of the nearend signal done inside the AEC (Closed)
Patch Set: Corrected initialization of the nearend buffer Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aec/aec_core.h
diff --git a/webrtc/modules/audio_processing/aec/aec_core.h b/webrtc/modules/audio_processing/aec/aec_core.h
index 1ab20201860d9490f04033c2869c6ce2d90a1a90..654e2b2d0a5b64192682442f66d2a7f58927082b 100644
--- a/webrtc/modules/audio_processing/aec/aec_core.h
+++ b/webrtc/modules/audio_processing/aec/aec_core.h
@@ -128,16 +128,16 @@ struct AecCore {
int inSamples, outSamples;
int delayEstCtr;
- RingBuffer* nearFrBuf;
+ float nearend_buffer[NUM_HIGH_BANDS_MAX + 1]
+ [PART_LEN - (FRAME_LEN - PART_LEN)];
hlundin-webrtc 2016/09/07 21:28:46 Please, explain the sizes.
peah-webrtc 2016/09/08 09:50:26 Done.
+ int nearend_buffer_size;
RingBuffer* outFrBuf;
- RingBuffer* nearFrBufH[NUM_HIGH_BANDS_MAX];
RingBuffer* outFrBufH[NUM_HIGH_BANDS_MAX];
- float dBuf[PART_LEN2]; // nearend
float eBuf[PART_LEN2]; // error
- float dBufH[NUM_HIGH_BANDS_MAX][PART_LEN2]; // nearend
+ float previous_nearend_block[NUM_HIGH_BANDS_MAX + 1][PART_LEN];
float xPow[PART_LEN1];
float dPow[PART_LEN1];
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/aec/aec_core.cc » ('j') | webrtc/modules/audio_processing/aec/aec_core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698